Skip to content

FedeParola/memoslap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

memoslap

memoslap is a load benchmark for memcached servers, slightly faster but with many less features than the memaslap benchmark included in libmemcached.

Features

memoslap only supports TCP transport and does not check the correctness of values. Unlike the memaslap benchmark it provides the possibility to close and open new connections during the benchmark based on a maximum number of operations per connection.

Usage

Usage: memoslap [OPTION...] SERVER PORT
memoslap -- load benchmark for memcached servers

  -c, --clients=NUM          Number of concurrent clients for every thread
                             (default 128)
  -g, --get-share=FRACTION   Share of get operations (default 0.9)
  -k, --keys=NUM             Number of distinct keys to use (default 65536)
  -n, --no-fill              Do not fill the database before starting the
                             benchmark
  -o, --op-per-conn=NUM      Operations to execute for every TCP connection
                             (default 0 = all operations in one connection)
  -p, --consec-ports         Use consecutive src ports, starting from 5000
  -r, --runtime=SECS         Run time of the benchmark in seconds (default 10)
  -t, --threads=NUM          Number of threads (default 1)
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Compile

gcc memoslap.c -o memoslap -lpthread

About

Load benchmark for memcached servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages