/1brc

The One Billion Row Challenge using C++

Primary LanguageC++MIT LicenseMIT

Optimizing C++ code to run 87x faster: The One Billion Row Challenge

This is a companion repository for the Daily bit(e) of C++ #474: Optimizing code to run 87x faster.

Generating input

If you want to generate input for the 1brc challenge please follow the documentation at gunnarmorling/1brc.

The gunnarmorling/1brc repository is part of this repository as a submodule.

git submodule init
pushd 1brc
./create_measurements.sh 1000000000
./calculate_average_baseline.sh >golden_output.txt
popd
mv 1brc/measurements.txt .
mv 1brc/golden_output.txt .

If you want to also test against a random input, you can use the create_measurements3.sh instead.