Created
December 3, 2014 21:51
-
-
Save mattsta/384b9888e79fa08bf7c3 to your computer and use it in GitHub Desktop.
Script/Non-Script Speeds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1:6379> script load "return redis.call('georadius', '{global}:z:locations:'..ARGV[1], ARGV[2], ARGV[3], 10, 'km', 'withdistance', 'ascending')" | |
"1c4c03da2a57cf99d50d57aba9a1d431526b2b9e" | |
127.0.0.1:6379> script load "return redis.call('get', 'abc')" | |
"b86fdf4c29439ed5d9a52c206d90e2b2d8cfc42c" | |
Geo tests (key doesn't exist, so just testing getting an empty reply): | |
matt@ununoctium:~/repos/redis/src% redis-benchmark -n 10000 georadius {global}:z:locations:u1 51.0500000 3.7166700 10 km withdistance ascending | |
====== georadius {global}:z:locations:u1 51.0500000 3.7166700 10 km withdistance ascending ====== | |
10000 requests completed in 0.08 seconds | |
50 parallel clients | |
3 bytes payload | |
keep alive: 1 | |
100.00% <= 0 milliseconds | |
120481.93 requests per second | |
matt@ununoctium:~/repos/redis/src% redis-benchmark -n 10000 evalsha 1c4c03da2a57cf99d50d57aba9a1d431526b2b9e 0 u1 51.0500000 3.7166700 | |
====== evalsha 1c4c03da2a57cf99d50d57aba9a1d431526b2b9e 0 u1 51.0500000 3.7166700 ====== | |
10000 requests completed in 0.14 seconds | |
50 parallel clients | |
3 bytes payload | |
keep alive: 1 | |
98.83% <= 1 milliseconds | |
100.00% <= 1 milliseconds | |
70921.98 requests per second | |
Simple GET tests (key 'abc' doesn't exist, getting empty reply): | |
matt@ununoctium:~/repos/redis/src% redis-benchmark -n 10000 get abc | |
====== get abc ====== | |
10000 requests completed in 0.08 seconds | |
50 parallel clients | |
3 bytes payload | |
keep alive: 1 | |
100.00% <= 0 milliseconds | |
123456.79 requests per second | |
matt@ununoctium:~/repos/redis/src% redis-benchmark -n 10000 evalsha b86fdf4c29439ed5d9a52c206d90e2b2d8cfc42c 0 | |
====== evalsha b86fdf4c29439ed5d9a52c206d90e2b2d8cfc42c 0 ====== | |
10000 requests completed in 0.10 seconds | |
50 parallel clients | |
3 bytes payload | |
keep alive: 1 | |
100.00% <= 0 milliseconds | |
99009.90 requests per second |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment