I could not find an example for bench marking of HGET , HSET (hash table commands) with redis. Any example or resource will be useful regarding this.
相关问题
- Getting Redis Master address from Sentinel C#
- jsp caching tag library
- Configuring Redis to play nice with AppHarbor
- How can we cache HLS video url once streamed
- Hibernate cache level 1
I just realized
redis-benchmark
command does not benchmarkhSet
andhGet
commands. (I'm using v2.8.5)What you could do is write a small program to benchmark the performance:
On my test server, results are as follows:
$ php redis/benchmark_redis.php Time taken for hSet = 557ms (for 10,000 keys) Time taken for hSet (bulk) = 51ms (for 10,000 keys) Time taken for hGet = 483ms (for 10,000 keys) Time taken for hGet (bulk) = 43ms (for 10,000 keys) Time taken for hDel (bulk) = 49ms (for 10,000 keys)
i'm using 3.0.2, the following command can benchmark hset
redisredis-benchmark -h 192.168.22.58 -p 6379 -d 100 -c 10 -n 1000000 hset myhash rand_int rand_string