Skip to content

Benchmark HyperLogLog in Redis for accuracy and memory usage

Notifications You must be signed in to change notification settings

krausen/hyperloglog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HyperLogLog vs Set

Check the error of redis HyperLogLog when it is used to compute the cardinality (number of elements in a set) when given a multiset (set that might contain duplicates) of ip addresses. Also compare memory usage of HyperLogLog and a regular set in.

Results

With 10000000 values and a cardinality of 9982031

Accuracy Memory Usage
HyperLogLog 99.89% 14KB
Set 100% 617725KB

Run

pip install -r requirements.txt
./run.sh  # Will kill redis docker container and start a new one

About

Benchmark HyperLogLog in Redis for accuracy and memory usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published