aboutsummaryrefslogtreecommitdiff
path: root/calculate_average_truelive.sh
diff options
context:
space:
mode:
authorRoman Schweitzer <truelive4@gmail.com>2024-01-05 23:40:03 +0100
committerGitHub <noreply@github.com>2024-01-05 23:40:03 +0100
commit5f4ed31fece5c20de6a23e3c5a9eedac9a63bc1a (patch)
tree3260d376bf4e231deb9c9fcd0576f7f67b7cc34e /calculate_average_truelive.sh
parent13a385c2e62062895ba554fa4b9d977102869d69 (diff)
CalculateAverage_truelive second attempt
* cleanup * getDouble new double parser * parseBuffer more reliable * use graalvm to execute * cleanup * cleanup * fix formatting * fix graalvm init and launch script
Diffstat (limited to 'calculate_average_truelive.sh')
-rwxr-xr-xcalculate_average_truelive.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/calculate_average_truelive.sh b/calculate_average_truelive.sh
index 2c357d3..100319c 100755
--- a/calculate_average_truelive.sh
+++ b/calculate_average_truelive.sh
@@ -15,6 +15,8 @@
# limitations under the License.
#
+source "$HOME/.sdkman/bin/sdkman-init.sh"
+sdk use java 21.0.1-graalce 1>&2
-JAVA_OPTS="-Xmx4G"
+JAVA_OPTS="-Xmx8G -Xms2G"
time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_truelive