Use proper key for CalculateAverage_filiphr;

* Revert using hash as a key
* Use custom key with Arrays#equals as a key in the Map of measurements
* Add sdk use java in the calculate script
This commit is contained in:
Filip Hrisafov
2024-01-05 17:54:08 +01:00
committed by GitHub
parent e420129f7d
commit c4879d4104
2 changed files with 110 additions and 25 deletions

View File

@@ -16,7 +16,7 @@
#
sdk use java 21.0.1-graal
java -version
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk use java 21.0.1-graal 1>&2
JAVA_OPTS=""
time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_filiphr