roberto-trani / mphf_benchmark Goto Github PK
View Code? Open in Web Editor NEWA Benchmark of Minimal Perfect Hash Function Algorithms.
License: MIT License
A Benchmark of Minimal Perfect Hash Function Algorithms.
License: MIT License
Cmph is too old. Another CHD implement optimized for throughput: https://github.com/PeterRK/fastCHD
Hello,
I'm Piotr Beling, PhD from University of Łódź.
For my own research, I began to develop a fork of mphf_benchmark available at:
https://github.com/beling/mphf_benchmark
In my fork I:
Please feel free to copy some or all my changes to your branch. I especially recommended the following one that fixes the bug with keys duplication:
beling@953a44c
Best regards
Piotr Beling
When I try to run bbhash with strings keys, then the program ends with MPHF contains out of range values
exception.
bbhash works very well with integer keys.
Have you noticed this problem Giulio? Is it the fault of mphf_benchmark or bbhash?
I don't see anything suspicious in the mphf_benchmark code, while the bbhash code is a bit unreadable to me.
Example run:
cat uk-2005-nat.urls | ./mphf_benchmark bbhash
And output:
4 threads available for multi-threaded calculations Reading keys from stdin Read 39459925 keys, with average length 71.37 Algorithm BBhash(gamma=1, num_threads=1) Average Construction time: 57s 778ms (57.778s) Average Space usage: 3.06 bits/key terminate called after throwing an instance of 'std::runtime_error' what(): MPHF contains out of range values
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.