REDIS-BENCHMARK(1)
π NAME π
redis-benchmark β ok so bestie, this is the tool that benchmarks a Redis instance. (The original page spells it "Benechmark", and honestly? We're keeping the typo, it's part of the lore. π)
β¨ SYNOPSIS β¨
redis-benchmark [-h <host>] [-p <port>] [-c <clients>] [-n <requests]> [-k <boolean>]
That's the whole vibe check right there. Every flag gets its own lil moment below. π«Ά
π¦ DESCRIPTION π¦
So Redis is a key-value database. It's giving memcached energy, but make it main character: the dataset is not volatile (no cap, your data stays put), and it natively supports other datatypes too, like lists and sets. πΈ
π OPTIONS π
-hhostname β Server hostname (default127.0.0.1). Yes, localhost, your comfort zone. π-pport β Server port (default6379). The classic. The iconic. The one you know by heart. π-ssocket β Server socket (this one overrides host and port, so like, it wins the argument, periodt). π-apassword β Password for Redis Auth. π-cclients β Number of parallel connections (default50). Bring the whole group chat. π―-nrequests β Total number of requests (default100000). That's a lot of asks, bestie. π-dsize β Data size of SET/GET value in bytes (default2). Lil baby values. π-dbnumdb β SELECT the specified db number (default0). Picking your lane. πͺ-kboolean β1=keep alive,0=reconnect (default1). Choose your social battery level. π-rkeyspacelen β Use random keys for SET/GET/INCR, random values for SADD. Using this option the benchmark will get/set keys in the formmykey_rand000000012456instead of constant keys, and the<keyspacelen>argument determines the max number of values for the random number. For instance if set to10only therand000000000000-rand000000000009range will be allowed. Chaos mode, but controlled chaos. π-Pnumreq β Pipeline<numreq>requests. Default1(no pipeline). Batch it, babe. π¦-qβ Quiet. Just show query/sec values. Not me being mysterious. π€«--csvβ Output in CSV format. Spreadsheet girlies rise. π-lβ Loop. Run the tests forever. Forever. No off switch, we die like legends. βΎοΈ-Iβ Idle mode. Just open N idle connections and wait. The art of doing nothing, but professionally. π-Dβ Debug mode. More verbose. It's giving very talkative. π£οΈ
π AUTHOR π
redis-benchmark was written by Salvatore Sanfilippo. π«Ά
This manual page was written by Chris Lamb <lamby@debian.org> for the Debian project (but may be used by others). π
and that's the whole page, bestie π this was the General Commands Manual's REDIS-BENCHMARK(1), dated June 28, 2010, and yes it's old enough to have its own vintage aesthetic β iconic behavior, honestly. go benchmark something and slay. β¨π
π¦ where this page comes from
- debian bookworm: redis-tools 5:7.0.15-1~deb12u10 Β· BSD-3-Clause
- debian bookworm: redis-tools 5:7.0.15-1~deb12u7 Β· BSD-3-Clause
- debian trixie: redis-tools 5:8.0.2-3+deb13u2 Β· BSD-3-Clause
- debian trixie: redis-tools 5:8.0.2-3+deb13u3 Β· BSD-3-Clause
- ubuntu jammy: redis-tools 5:6.0.16-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: redis-tools 5:6.0.16-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: redis-tools 5:7.0.15-1build2 Β· BSD-3-Clause
- ubuntu noble: redis-tools 5:7.0.15-1ubuntu0.24.04.5 Β· BSD-3-Clause
- ubuntu questing: redis-tools 5:8.0.2-3build1
- ubuntu questing: redis-tools 5:8.0.2-3ubuntu0.25.10.1
- ubuntu resolute: redis-tools 5:8.0.5-1 Β· BSD-3-Clause
- ubuntu resolute: redis-tools 5:8.0.5-1ubuntu0.1 Β· BSD-3-Clause
- ubuntu stonking: redis-tools 5:8.0.6-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms