Run benchmark by using a [P]ipelining of 16 commands

redis-benchmark

  • A tool to benchmark a Redis server.
    More information: <https://redis.io/docs/reference/optimization/benchmarks/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

redis-benchmark -n {{1000000}} -t {{set,get}} -P {{16}}

click the source code to copy install redis-benchmark on any operating system with command-not-found.com