Skip to content
This organization was marked as archived by an administrator on Feb 3, 2025. It is no longer maintained.
@1brc

The One Billion Row Challenge

1๏ธโƒฃ๐Ÿ๐ŸŽ

banner

The 1brc-related community is now decentralized across hundreds of repositories! ๐Ÿคฉ
Visit the original repository's Discussions tab or search the 1brc GitHub topic to get involved!


๐Ÿ“š Read more on the website!

Your mission, should you choose to accept it, is to write a program that retrieves temperature measurement values from a text file and calculates the min, mean, and max temperature per weather station. There's just one caveat: the file has 1,000,000,000 rows! That's more than 10 GB of data! ๐Ÿ˜ฑ

The text file has a simple structure with one measurement value per row:

Hamburg;12.0
Bulawayo;8.9
Palembang;38.8
Hamburg;34.2
St. John's;15.2
Cracow;12.6
... etc. ...

The program should print out the min, mean, and max values per station, alphabetically ordered. The format that is expected varies slightly from language to language, but the following example shows the expected output for the first three stations:

Hamburg;12.0;23.1;34.2
Bulawayo;8.9;22.1;35.2
Palembang;38.8;39.9;41.0

Oh, and this input.txt is different for each submission since it's generated on-demand. So no hard-coding the results! ๐Ÿ˜‰

Choose from one of the languages below to get started! ๐Ÿš€
Don't see your favorite language listed? Open an Issue to add it!


Java C/C++ C# Python Go JavaScript Rust Zig PHP

Popular repositories Loading

  1. nodejs nodejs Public archive

    1๏ธโƒฃ๐Ÿ๐ŸŽ๏ธ The One Billion Row Challenge with Node.js -- A fun exploration of how quickly 1B rows from a text file can be aggregated with different languages.

    Java 63 52

  2. 1brc.github.io 1brc.github.io Public archive

    ๐ŸŒ 1brc.dev website for @1brc

    TypeScript 13 8

  3. bun bun Public archive

    1๏ธโƒฃ๐Ÿ๐ŸŽ๏ธ The One Billion Row Challenge with Bun (a new JS runtime) -- A fun exploration of how quickly 1B rows from a text file can be aggregated with different languages.

    Java 2 4

  4. .github .github Public archive

    โœจ GitHub meta repo

Repositories

Showing 4 of 4 repositories

Top languages

Loadingโ€ฆ

Most used topics

Loadingโ€ฆ