← All projects
Project record1 mention
Originally shared on Hacker News

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.

Last shared
01 / The problem

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.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. 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.