Skip to content

Commit

Permalink
More JAVA_OPTS flags, 0.1s better locally
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl committed Jan 31, 2024
1 parent 0347ce9 commit 30c82ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calculate_average_slovdahl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
# limitations under the License.
#

JAVA_OPTS="-Xmx8g -Xms8g --enable-preview"
JAVA_OPTS="${JAVA_OPTS} --enable-preview -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions"
JAVA_OPTS="${JAVA_OPTS} -Xmx8g -Xms8g"
JAVA_OPTS="${JAVA_OPTS} -XX:+TrustFinalNonStaticFields -XX:-UseCompressedOops"

java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_slovdahl

0 comments on commit 30c82ff

Please sign in to comment.