Erlang implementation of the One Billion Row Challenge
This is included in the set of Elixir/Erlang implementations discussed here: gunnarmorling/1brc#93.
rebar3 as test eunit
rebar3 as test ct
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
On Mac M1 Pro:
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.99
On Mac M1 Pro:
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:16.05