redis-client-benchmarks
redis-client-benchmarks copied to clipboard
Add rust benchmark
First, thanks so much for doing these. This is very helpful to me as I run an application where the vast majority of the CPU one service spends is talking to Redis (the other half is talking to the Twitter Streaming API, hence my similar benchmark repo at https://github.com/mroth/twitter-streaming-showdown/)
Note this has a TODO in the Rust README in lieu of actual benchmark numbers, since otherwise it wouldn’t be comparable as I am on different hardware than you.
For the quick sake of comparison on my hardware though (4GHz Core i7, 32GB RAM, Redis 3.0.7 running on localhost):
ruby_redisrb_hiredis_performance.rb 4.99s user 0.24s system 89% cpu 5.856 total
go_redigo_performance 0.38s user 0.04s system 43% cpu 0.973 total
crystal_redis_performance 0.37s user 0.08s system 44% cpu 0.993 total
rust-redis-client-performance 1.21s user 0.11s system 61% cpu 2.146 total
I found these numbers are a bit surprising, and suggest the Rust redis crate may have significant optimization work remaining to be done (either that or I did something grossly incorrect).
Wow, somehow I totally missed this already existed in #2. My bad. Please feel free to close this one unless you prefer it for some reason.
Hi Matthew, thanks for the PRs. I will look into this one when I have a little more since I will have to learn how to setup Rust.