KFoxder / 1brc_ocaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Name

My attempt using Ocaml for the 1BRC challenge.

Usage

# Install
opam install .
# Run Tests
dune test
# Create 1 billion rows test data
python3 test/data/create_measurements.py 1_000_000_000
# dune exec weather_stats [file_path] [num_threads]
dune exec weather_stats "test/data/measurements.txt" 4

Results

Specs:

  • Macbook Pro - M1
  • 16GB Memory

Time: ~60 seconds

About


Languages

Language:OCaml 63.8%Language:Python 36.2%