LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

memtier_benchmark

load generation and benchmarking tool for Redis and Memcached

TLDR

Benchmark Redis
$ memtier_benchmark -s [localhost] -p [6379]
copy
Benchmark with clients and threads
$ memtier_benchmark -s [host] -c [50] -t [4]
copy
Custom key pattern
$ memtier_benchmark -s [host] --key-pattern=S:S
copy
Set data size
$ memtier_benchmark -s [host] -d [128]
copy
Run for specific duration
$ memtier_benchmark -s [host] --test-time=[60]
copy
Benchmark memcached
$ memtier_benchmark -s [host] -p [11211] --protocol=memcache_text
copy

SYNOPSIS

memtier_benchmark [options]

DESCRIPTION

memtier_benchmark is a load generation and benchmarking tool for Redis and Memcached. It measures throughput and latency under various load conditions.The tool supports multiple protocols and provides detailed statistics including percentile latencies.

PARAMETERS

-s host

Server hostname.
-p port
Server port.
-c clients
Clients per thread.
-t threads
Number of threads.
-d size
Data size in bytes.
--protocol proto
redis, memcachetext, memcachebinary.
--ratio get:set
GET:SET ratio.
--test-time secs
Test duration.
--key-pattern pattern
Key access pattern.

KEY PATTERNS

$ S:S - Sequential
R:R - Random
G:G - Gaussian
copy

CAVEATS

Benchmarks only; doesn't test data integrity. Results depend on network. Use multiple instances for high-throughput testing.

HISTORY

memtier_benchmark was developed by Redis Labs (now Redis Inc.) as a comprehensive benchmarking tool for in-memory data stores.

SEE ALSO

Copied to clipboard
Kai