From ad7a6ec57357df7af33a4049c88c5a5c1f022e81 Mon Sep 17 00:00:00 2001 From: Anton Rybochkin Date: Wed, 10 Jan 2024 22:26:00 +0100 Subject: Initial solution by raipc * Initial solution by raipc * Implemented custom hash map with open addressing * Small optimizations to task splitting and range check disabling * Fixed off-by-one error in merge * Run with EpsilonGC. Borrowed VM params from Shipilev * Make script executable * Add a license --- calculate_average_raipc.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 calculate_average_raipc.sh (limited to 'calculate_average_raipc.sh') diff --git a/calculate_average_raipc.sh b/calculate_average_raipc.sh new file mode 100755 index 0000000..c3970d8 --- /dev/null +++ b/calculate_average_raipc.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Copyright 2023 The original authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +JAVA_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens java.base/jdk.internal.util=ALL-UNNAMED" +JAVA_OPTS="$JAVA_OPTS -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xms128M -Xmx128M -XX:-AlwaysPreTouch -XX:-TieredCompilation -XX:CICompilerCount=1" +time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_raipc -- cgit v1.2.3