Closed eadf closed 12 months ago
Thanks for this -- I'm glad to hear that Vob is giving you good performance!
I'd certainly welcome more benchmarks in the benches
directory https://github.com/softdevteam/vob/tree/master/benches. That said, I've noticed a) that we're not doing `cargo bench in CI and b) there are build errors. Mea culpa! I'll raise a PR to fix them, as that will otherwise make adding new benchmarks for you a bit tricky.
Ok, i'll come back with a PR later then
I've raised https://github.com/softdevteam/vob/pull/70 (I've not used criterion before, so I might not have done it correctly).
I recently wrote a benchmark so see if i should use a HashSet or a Vob to keep track of some 10000 indices.
I did not expect the Vob to be more than 20 times faster under these specific conditions:
Using something like AHashSet cuts the hashset times in half, but it still can't be compared to a vob. But then again, maybe the test is a bit skewed as the CPU can keep the entire vob in registers during the test.
Do you want a PR for this?