Permalink
Browse files

ZREMRANGEBYSCORE benchmarked

  • Loading branch information...
1 parent 401f38e commit 2c7d785be694e3b66512dce7c36d96e086876683 Fernando 'Brujo' Benavides committed Nov 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/benchmarks/zsets_bench.erl
@@ -270,5 +270,6 @@ zremrangebyscore_n([Key|_]) ->
zremrangebyscore_m([Key|_]) ->
catch edis_db:run(
edis_db:process(0),
- #edis_command{cmd = <<"ZREMRANGEBYRANK">>, args = [?KEY, {exc, 0.0}, {inc, edis_util:binary_to_float(Key)}],
+ #edis_command{cmd = <<"ZREMRANGEBYSCORE">>,
+ args = [?KEY, neg_infinity, {inc, edis_util:binary_to_float(Key)}],
group = zsets, result_type = multi_bulk}).

0 comments on commit 2c7d785

Please sign in to comment.