As we described earlier, the processing speed of Redis depends on the following factors: the power of CPU, the network bandwidth, the size of dataset, the operation you perform, and so on. So it's essential to know how fast your Redis instance is after deploying to production. It's the performance benchmark that comes into play at this time. If the result of the benchmark cannot meet your requirements, you need to consider upgrading your hardware or adjusting the way you are going to use Redis. In this recipe, we will introduce the Redis benchmark tool, redis-benchmark
and explain how to do a Redis benchmark with it.
You need to finish the installation of the Redis Server, as we described in the Downloading and installing Redis recipe in Chapter 1, Getting Started with Redis.