Step 7 - Challenge: Performance Optimisation and Benchmarking
Step 7 - Challenge: Performance Optimisation and Benchmarking
Build Your Own Redis Server (Python Edition)
Step 1 - Introduction to RESP, Building a Protocol Handler Using Test-Driven Development
Step 1 - Introduction to RESP, Building a Protocol Handler Using Test-Driven Development
Step 2 - Creating a Network Client and Server
Step 2 - Creating a Network Client and Server
Step 4 - Handling Concurrency
Step 4 - Handling Concurrency
Step 5 - Implementing Expiry
Step 5 - Implementing Expiry
In this step your goal is to use the Redis Benchmark tool to test your server’s GET and SET performance.
I suggest you run a Redis server locally and see how that performs, then compare it to your solution.
For example, here’s how Redis performs on my Macbook:
redis-benchmark -t set,get, -n 100000 -q
SET: 110497.24 requests per second, p50=0.215 msec
GET: 117647.05 requests per second, p50=0.215 msecRefer to the lesson in this step to learn how to optimise the performance of your implementation.