Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages