Multi-threaded redis implemented in C++, support SET
and GET
command using RESP2.
cmake -B build
cd build && make
cd bin
./mini-redis -w [number of worker threads]
Just run it, use -t
to specify the command you want to test.
go run bench.go -ct [concurrent times to test]
- Make sure you had enabled
io-threads
go run bench.go -t [redis command to test] -ct [concurrent times to test]
- Results are displayed on screen
The overall RPS of mini-redis is 60% and 100% higher than Redis under 4 worker threads and 6 worker threads seperately!