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
6.08k stars 1.83k forks source link

Processing three at once #620

Closed artsiomkorzun closed 7 months ago

artsiomkorzun commented 7 months ago

Check List:

@gunnarmorling please try this one, reworked the code a bit.

gunnarmorling commented 7 months ago

Still slower:

Benchmark 1: timeout -v 300 ./calculate_average_artsiomkorzun.sh 2>&1
  Time (mean ± σ):      2.275 s ±  0.016 s    [User: 0.002 s, System: 0.004 s]
  Range (min … max):    2.250 s …  2.291 s    5 runs

Summary
  artsiomkorzun: trimmed mean 2.2773191317333334, raw times 2.2497048544,2.2821089994,2.2912083904,2.2811346294,2.2687137664

Leaderboard

| # | Result (m:s.ms) | Implementation     | JDK | Submitter     | Notes     |
|---|-----------------|--------------------|-----|---------------|-----------|
|   | 00:02.277 | [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_artsiomkorzun.java)| 21.0.2-graal | [Artsiom Korzun](https://github.com/artsiomkorzun) | GraalVM native binary, uses Unsafe |
artsiomkorzun commented 7 months ago

@gunnarmorling thanks for your patience:)