My attempt using Ocaml for the 1BRC challenge.
# 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
Specs:
- Macbook Pro - M1
- 16GB Memory
Time: ~60 seconds