From ba5a839a86f1682f9dbed11793a9a5d3c4674fa4 Mon Sep 17 00:00:00 2001 From: Elliot Barlas Date: Wed, 3 Jan 2024 12:18:20 -0800 Subject: [PATCH] Running ebarlas solution with GraalVM CE 21.0.1 --- README.md | 2 +- calculate_average_ebarlas.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b908b63..d439f36 100644 --- a/README.md +++ b/README.md @@ -131,10 +131,10 @@ To submit your own implementation to 1BRC, follow these steps: * Make that implementation fast. Really fast. * Create a copy of _calculate_average.sh_, named _calculate\_average\_.sh_, e.g. _calculate\_average\_doloreswilson.sh_. * Adjust that script so that it references your implementation class name. If needed, provide any JVM arguments via the `JAVA_OPTS` variable in that script. +* OpenJDK 21 is the default. If a custom JDK build is required, include the SDKMAN command `sdk use java [version]` in the launch shell script prior to application start. * (Optional) If you'd like to use native binaries (GraalVM), adjust the _pom.xml_ file so that it builds that binary. * Create a pull request against the upstream repository, clearly stating * The name of your implementation class. - * The JDK build to use (if not specified, the latest OpenJDK 21 upstream build will be used). * The execution time of the program on your system and specs of the same (CPU, number of cores, RAM). This is for informative purposes only, the official runtime will be determined as described below. * I will run the program and determine its performance as described in the next section, and enter the result to the scoreboard. diff --git a/calculate_average_ebarlas.sh b/calculate_average_ebarlas.sh index 467b2eb..65cc651 100755 --- a/calculate_average_ebarlas.sh +++ b/calculate_average_ebarlas.sh @@ -15,6 +15,6 @@ # limitations under the License. # - +sdk use java 21.0.1-graalce JAVA_OPTS="" time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_ebarlas measurements.txt 16