Closed artsiomkorzun closed 7 months ago
OH, wow:
Benchmark 1: timeout -v 300 ./calculate_average_artsiomkorzun.sh 2>&1
Time (mean ± σ): 2.020 s ± 0.002 s [User: 0.001 s, System: 0.004 s]
Range (min … max): 2.016 s … 2.024 s 10 runs
Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.
Summary
artsiomkorzun: trimmed mean 2.01961878996, raw times 2.0163513964599997,2.02158256246,2.01961824346,2.02362401246,2.01963217946,2.01981398246,2.01937850746,2.0193544704599997,2.01826585946,2.01930451446
Leaderboard
| # | Result (m:s.ms) | Implementation | JDK | Submitter | Notes |
|---|-----------------|--------------------|-----|---------------|-----------|
| | 00:02.019 | [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 |
this is amazing, congratz!
Wow congrats, have you tried putting an else here?
If the value is lower than min, there is no way it's higher than max.
@royvanrijn not yet, will try today.
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: a bit better
Execution time of reference implementation: a lot