Skip to content

Instantly share code, notes, and snippets.

redis-benchmark -n 10000 georadius {global}:z:locations:u1 51.0500000 3.7166700 10 km withdistance ascending
==> 16672.22 requests per second
lua script & loaded with script load, (beb7db091bbce8bf94167b02e8f136f1fcbc0889)
return redis.call('georadius', '{global}:z:locations:'..ARGV[1], ARGV[2], ARGV[3], 10, 'km', 'withdistance', 'ascending')
redis-benchmark -n 10000 evalsha beb7db091bbce8bf94167b02e8f136f1fcbc0889 0 u1 51.0500000 3.7166700
==> 4277.16 requests per second