REDIS-BENCHMARK(1)

πŸ“¦
version 8.0.6 Β· 2 versions
  • 8.0.6 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 7.2.16 Β· centos-stream 9
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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 πŸŽ€

  • -h hostname β€” Server hostname (default 127.0.0.1). Yes, localhost, your comfort zone. 🏠
  • -p port β€” Server port (default 6379). The classic. The iconic. The one you know by heart. πŸ‘‘
  • -s socket β€” Server socket (this one overrides host and port, so like, it wins the argument, periodt). πŸ”Œ
  • -a password β€” Password for Redis Auth. πŸ”
  • -c clients β€” Number of parallel connections (default 50). Bring the whole group chat. πŸ‘―
  • -n requests β€” Total number of requests (default 100000). That's a lot of asks, bestie. πŸ’Œ
  • -d size β€” Data size of SET/GET value in bytes (default 2). Lil baby values. πŸ“
  • -dbnum db β€” SELECT the specified db number (default 0). Picking your lane. πŸšͺ
  • -k boolean β€” 1=keep alive, 0=reconnect (default 1). Choose your social battery level. πŸ”‹
  • -r keyspacelen β€” Use random keys for SET/GET/INCR, random values for SADD. Using this option the benchmark will get/set keys in the form mykey_rand000000012456 instead of constant keys, and the <keyspacelen> argument determines the max number of values for the random number. For instance if set to 10 only the rand000000000000 - rand000000000009 range will be allowed. Chaos mode, but controlled chaos. 🌈
  • -P numreq β€” Pipeline <numreq> requests. Default 1 (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. βœ¨πŸ‘‘