gunnarmorling / 1brc

1️⃣🐝🏎️ The One Billion Row Challenge -- A fun exploration of how quickly 1B rows from a text file can be aggregated with Java
https://www.morling.dev/blog/one-billion-row-challenge/
Apache License 2.0
5.69k stars 1.73k forks source link

jerrinot - final(?) improvements #690

Closed jerrinot closed 5 months ago

jerrinot commented 5 months ago

Check List:

supersedes https://github.com/gunnarmorling/1brc/pull/652

gunnarmorling commented 5 months ago

OMG:

Benchmark 1: timeout -v 300 ./calculate_average_jerrinot.sh 2>&1
  Time (mean ± σ):      1.638 s ±  0.024 s    [User: 0.002 s, System: 0.004 s]
  Range (min … max):    1.597 s …  1.657 s    5 runs

Summary
  jerrinot: trimmed mean 1.64529769248, raw times 1.5968923114800002,1.6570793184800001,1.64792236748,1.64362821748,1.64434249248

Leaderboard

| # | Result (m:s.ms) | Implementation     | JDK | Submitter     | Notes     |
|---|-----------------|--------------------|-----|---------------|-----------|
|   | 00:01.645 | [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_jerrinot.java)| 21.0.2-graal | [Jaromir Hamala](https://github.com/jerrinot) | GraalVM native binary, uses Unsafe |
jerrinot commented 5 months ago

hell yeah!