An open API service indexing awesome lists of open source software.

https://github.com/whatfor/1bcr.net


https://github.com/whatfor/1bcr.net

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

          

# 1BRC .NET

A fork of https://github.com/myquay/1brc.

### Instructions

The text file contains temperature values for a range of weather stations. Each row is one measurement in the format ;, with the measurement value having exactly one fractional digit. The following shows ten rows as an example:

```
Hamburg;12.0
Bulawayo;8.9
Palembang;38.8
St. John's;15.2
Cracow;12.6
Bridgetown;26.9
Istanbul;6.2
Roseau;34.4
Conakry;31.2
Istanbul;23.0
```

The task is to write a program which reads the file, calculates the min, mean, and max temperature value per weather station, and emits the results on stdout like this (i.e. sorted alphabetically by station name, and the result values per station in the format //, rounded to one fractional digit):

```
{Abha=-23.0/18.0/59.2, Abidjan=-16.2/26.0/67.3, Abéché=-10.0/29.4/69.0, Accra=-10.1/26.4/66.4, Addis Ababa=-23.7/16.0/67.0, Adelaide=-27.8/17.3/58.5, ...}
```

### Running

Run the `CreateMeasurements` cmd tool to generate the 1 billion rows. This is roughly 13GB, so takes some time.