Add random dataset on fastfield bench.

This commit is contained in:
François Massot
2021-11-23 21:29:07 +01:00
parent 02174d26af
commit 8b87fa90a2

View File

@@ -91,6 +91,10 @@ pub fn get_codec_test_data_sets() -> Vec<(Vec<u64>, &'static str)> {
.collect::<Vec<_>>();
data_and_names.push((data, "Almost monotonically increasing"));
let data = (1000..=200_000_u64)
.map(|_| rand::random::<u8>() as u64)
.collect::<Vec<_>>();
data_and_names.push((data, "Random"));
data_and_names
}