aboutsummaryrefslogtreecommitdiff
path: root/calculate_average_nstng.sh
diff options
context:
space:
mode:
authorNils Semmelrock <42540177+nstng@users.noreply.github.com>2024-01-04 23:31:47 +0100
committerGitHub <noreply@github.com>2024-01-04 23:31:47 +0100
commit12ae36ade18fba051b0ce7af70e7d7364a28becf (patch)
tree2a5fb06012ce8ac33b9a9f0a1454d9b2c9f2ec86 /calculate_average_nstng.sh
parent1c74049991ed67d3b11ade6532b2ce5c2c895be2 (diff)
Adding Nils Semmelrock's submission
nothing fancy, just work on chunks in parallel and optimize bottlenecks
Diffstat (limited to 'calculate_average_nstng.sh')
-rwxr-xr-xcalculate_average_nstng.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/calculate_average_nstng.sh b/calculate_average_nstng.sh
new file mode 100755
index 0000000..fccca03
--- /dev/null
+++ b/calculate_average_nstng.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# 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="-Xmx16G"
+time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_nstng