aboutsummaryrefslogtreecommitdiff
path: root/calculate_average_raipc.sh
diff options
context:
space:
mode:
authorAnton Rybochkin <anton.rybochkin@axibase.com>2024-01-10 22:26:00 +0100
committerGitHub <noreply@github.com>2024-01-10 22:26:00 +0100
commitad7a6ec57357df7af33a4049c88c5a5c1f022e81 (patch)
tree277a7a4be00cd1fe1e5e511accf13a563a72e57e /calculate_average_raipc.sh
parent1589210038a3ca04915851a22424c638d18eb444 (diff)
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
Diffstat (limited to 'calculate_average_raipc.sh')
-rwxr-xr-xcalculate_average_raipc.sh21
1 files changed, 21 insertions, 0 deletions
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