Closed artsiomkorzun closed 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 |
@gunnarmorling thanks for your patience:)
Check List:
[x] Tests pass (
./test.sh <username>
shows no differences between expected and actual outputs)[x] All formatting changes by the build are committed
[x] Your launch script is named
calculate_average_<username>.sh
(make sure to match casing of your GH user name) and is executable[x] Output matches that of
calculate_average_baseline.sh
[x] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)
Execution time: -
Execution time of reference implementation:-
@gunnarmorling please try this one, reworked the code a bit.