aboutsummaryrefslogtreecommitdiff
path: root/calculate_average_ddimtirov.sh
diff options
context:
space:
mode:
Diffstat (limited to 'calculate_average_ddimtirov.sh')
-rw-r--r--calculate_average_ddimtirov.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/calculate_average_ddimtirov.sh b/calculate_average_ddimtirov.sh
index 26fb652..94a1981 100644
--- a/calculate_average_ddimtirov.sh
+++ b/calculate_average_ddimtirov.sh
@@ -15,6 +15,7 @@
# limitations under the License.
#
-
-JAVA_OPTS="-XX:+UseParallelGC"
+# --enable-preview to use the new memory mapped segments
+# We don't allocate much, so just give it 1G heap and turn off GC; the AlwaysPreTouch was suggested by the ergonomics
+JAVA_OPTS="--enable-preview -Xms1g -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+AlwaysPreTouch"
time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_ddimtirov