aboutsummaryrefslogtreecommitdiff
path: root/calculate_average_berry120.sh
diff options
context:
space:
mode:
authorMichael Berry <berry120@gmail.com>2024-01-10 21:17:11 +0000
committerGitHub <noreply@github.com>2024-01-10 22:17:11 +0100
commit1589210038a3ca04915851a22424c638d18eb444 (patch)
treefb8aae1fdc4b284133d913f63f11b73a996c46a4 /calculate_average_berry120.sh
parentd4fdcc5408f2f38c81ff738756c126cf5918fa0f (diff)
Initial implementation (#158)
* Initial implementation * Make executable * Deal with collisions (but very slow) * Formatting * Remove superfluous time * Formatting * Fixes * Remove hard coded correction line * Integer parsing speedup
Diffstat (limited to 'calculate_average_berry120.sh')
-rwxr-xr-xcalculate_average_berry120.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/calculate_average_berry120.sh b/calculate_average_berry120.sh
new file mode 100755
index 0000000..76bb7ae
--- /dev/null
+++ b/calculate_average_berry120.sh
@@ -0,0 +1,20 @@
+#!/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.
+#
+
+#sdk use java 21.0.1-amzn
+JAVA_OPTS="-Xlog:gc=error --enable-preview --add-modules=jdk.incubator.vector"
+time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_berry120