Skip to content

Erlang implementation of the One Billion Row Challenge

License

Notifications You must be signed in to change notification settings

onno-vos-dev/1brc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

1 Billion Row Challenge

Erlang implementation of the One Billion Row Challenge

This is included in the set of Elixir/Erlang implementations discussed here: gunnarmorling/1brc#93.

Usage

Running PropEr test:
rebar3 as test eunit
rebar3 as test ct
Running test implementation

First prepare the measurements files as per instructions found here

Then simply run:

# For Linux
erlc -W src/*erl && time -v erl +SDio 1 +SDPcpu 50 +sbwt none +sbwtdio none -noshell -s brc run "./measurements.txt" -s init stop  2>&1

# For OSX
erlc -W src/*erl && gtime -v erl +SDio 1 +SDPcpu 50 +sbwt none +sbwtdio none -noshell -s brc run "./measurements.txt" -s init stop  2>&1

Results

Results for 1BRC

On Mac M1 Pro:

Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.99
Results for 1BRC with 10k keys

On Mac M1 Pro:

Elapsed (wall clock) time (h:mm:ss or m:ss): 0:16.05

About

Erlang implementation of the One Billion Row Challenge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages