Birthday Benchmark
The Birthday Benchmark is a framework for testing data structures and caches by searching for duplicates in a stream of random data, providing a way to demonstrate the read/write speed of caching. The benchmark is tunable by adjusting how many bits must match (7 bytes is the best so far, 6 bytes runs comfortably fast), and it includes 'control group' data structures such as a 'psychic' that statically looks up the first repeat in the data. It is also intended to measure the effective concurrency of concurrent data structures and synchronization methods by comparing how fast threads sharing a data structure find duplicates versus threads searching independently.
What it addresses
Lacks a fast, tunable way to demonstrate cache read/write speed and to test the effective concurrency of concurrent data structures and synchronization methods, including showing that multi-threaded sharing actually speeds up duplicate detection rather than behaving like independent threads.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Birthday Benchmark
The Birthday Benchmark is a framework for testing data structures and caches by searching for duplicates in a stream of random data, providing a way to demonstrate the read/write speed of caching. The benchmark is tunable by adjusting how many bits must match (7 bytes is the best so far, 6 bytes runs comfortably fast), and it includes 'control group' data structures such as a 'psychic' that statically looks up the first repeat in the data. It is also intended to measure the effective concurrency of concurrent data structures and synchronization methods by comparing how fast threads sharing a data structure find duplicates versus threads searching independently.
Problem: Lacks a fast, tunable way to demonstrate cache read/write speed and to test the effective concurrency of concurrent data structures and synchronization methods, including showing that multi-threaded sharing actually speeds up duplicate detection rather than behaving like independent threads.
Posted by @xnorswap · Original source ↗
Source text · @xnorswap · · Source ↗
It's not progressing well, but I'm still obsessed by trying to prove my idea of the "Birthday Benchmark" to test data structures / caches.