mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Fix HLL gnuplot graph generator script for new redis-rb versions.
The PFADD now takes an array and has mandatory two arguments.
This commit is contained in:
parent
4d475e0f88
commit
6cae609e8a
@ -30,7 +30,7 @@ def run_experiment(r,seed,max,step)
|
|||||||
elements << ele
|
elements << ele
|
||||||
i += 1
|
i += 1
|
||||||
}
|
}
|
||||||
r.pfadd('hll',*elements)
|
r.pfadd('hll',elements)
|
||||||
approx = r.pfcount('hll')
|
approx = r.pfcount('hll')
|
||||||
err = approx-i
|
err = approx-i
|
||||||
rel_err = 100.to_f*err/i
|
rel_err = 100.to_f*err/i
|
||||||
|
Loading…
Reference in New Issue
Block a user