zjarci / 1brc

The One Billion Row Challenge using C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

The One Billion Row Challenge using C++

License:MIT License


Languages

Language:C++ 97.1%Language:CMake 2.7%Language:Shell 0.2%