load
Load generator for benchmark tasks with Zipf distribution.
Zipf distribution models real-world access patterns where a small number of items account for the majority of requests (hot data). This is common in web caches, database queries, and file system access patterns.
Usage
use Zipf;
// Generate cache access indices with Zipf distribution
let cache_accesses: = indices_access.unwrap
.take
.collect;
// Generate raw Zipf values
let zipf = new.unwrap;
let value = zipf.sample;
Shape parameter s controls distribution steepness:
s = 1.0: Classical Zipfs = 1.2: Typical web cache patternss = 2.0: Very steep (95/5 rule)