Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hariroshan/one-billion-rows-elixir
https://github.com/hariroshan/one-billion-rows-elixir
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hariroshan/one-billion-rows-elixir
- Owner: hariroshan
- Created: 2024-04-20T14:47:22.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-20T15:01:47.000Z (9 months ago)
- Last Synced: 2024-10-09T13:41:50.758Z (3 months ago)
- Language: Elixir
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OneBillion
Attempting One billion rows challenge in elixir `https://github.com/gunnarmorling/1brc`
For 100 million rows, it took:
```sh
./one_billion 226.51s user 38.14s system 620% cpu 42.669 total
```## Installation
Install Java 21 using
```sh
apt install openjdk-21
```Clone the repo `https://github.com/gunnarmorling/1brc`
```sh
git clone https://github.com/gunnarmorling/1brc
```Build the `1brc` project and generate `measurements.txt` file
```sh
cd 1brc
./mvnw clean verify
./create_measurements.sh 100000000 # 100_000_000
```
To run this project```sh
git clone https://github.com/hariroshan/one-billion-rows-elixir# Move the measurements.txt to the project root
mv 1brc/measurements.txt one-billion-rows-elixir/cd one-billion-rows-elixir
mix deps.get && mix compile# You can use iex -S mix too
MIX_ENV=prod mix "escript.build"time ./one_billion
```