# One Billion Row Challenge See [here](https://github.com/gunnarmorling/1brc). --- ## results > On an [E-2378G](https://www.intel.com/content/www/us/en/products/sku/212262/intel-xeon-e2378g-processor-16m-cache-2-80-ghz/specifications.html) w/o SMT w/turbo. | name | details | result (ms) | result: 10k stations (ms) | |:----:|:-------:|:-----------:|:--------------------------:| | [upstream baseline](https://github.com/gunnarmorling/1brc/blob/db064194be375edc02d6dbcd21268ad40f7e2869/src/main/java/dev/morling/onebrc/CalculateAverage_baseline.java) | `nix run .#bench.baseline.1br` | 135835 ± 1866 | 169128 ± 1378 | | [upstream #1](https://github.com/gunnarmorling/1brc/blob/db064194be375edc02d6dbcd21268ad40f7e2869/src/main/java/dev/morling/onebrc/CalculateAverage_thomaswue.java) | `nix run .#bench.1stAvx10.1br` | 1583 ± 18 | 5773 ± 143 | ## how to run? runnables: - `nix run .#bench..` + benchmarks a particular implemetnation on a particular input + i.e. `nix run .#bench.baseline.small` - `nix run .#testRunners. -- ` + tests that the implementation's outputs match reference outputs, for a particular input - `nix run .#testRunners.all -- ` + test an implementation on _all_ inputs - `nix run .#benchRunners. -- ` + benchmarks (`hyperfine`) the implementation when run on a particular input - `nix run .#impls.` + run a particular implementation + you probably do not want to do this directly (impls expect `measurements.txt` in cwd) * using `.#testRunner`/`.#benchRunner` or `.#bench..` will handle this for you notable impls: - `baseline`: baseline Java implementation from upstream - `1st-avx2`: 1st place Java implementation, compiled (graalvm) for `x86_64-v3` - `1st-avx10`: ^ but compiled for `x86_64-v4` (AVX512) notable inputs: - `1br`: default billion row input - `1br-many-stations`: billion row input with 10K stations - `small`: 100K row input ## details