jonhoo / jonhoo/bustle

Add option for non-uniform key distribution

Open
#7 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
120
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I suggest adding an option to use a [Zipf](https://en.wikipedia.org/wiki/Zipf%27s_law) distribution to sample the keys. It might give a more realistic work load for heavy contention applications as many real word datasets follow it.

The rand_distr crate has an implementation that is not yet released [here](https://github.com/rust-random/rand/blob/master/rand_distr/src/zipf.rs).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.