1 # Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # 4 # This code is free software; you can redistribute it and/or modify it 5 # under the terms of the GNU General Public License version 2 only, as 6 # published by the Free Software Foundation. 7 # 8 # This code is distributed in the hope that it will be useful, but WITHOUT 9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 # version 2 for more details (a copy is included in the LICENSE file that 12 # accompanied this code). 13 # 14 # You should have received a copy of the GNU General Public License version 15 # 2 along with this work; if not, write to the Free Software Foundation, 16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 # 18 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 # or visit www.oracle.com if you need additional information or have any 20 # questions. 21 22 # This script measure the performance of "javac HelloWorld.java" 23 # 24 # Specify one or more jvms: 25 # 26 # bash run.sh $jvm1 27 # bash run.sh $jvm1 $jvm2 ... 28 # 29 # It's possible to specify extra parameters for the jvms. E.g. 30 # 31 # bash run.sh a/bin/java 'b/bin/java -Xint' 'c/bin/java -Xmixed' 32 # 33 # See ../lib/bench-lib.sh for sample timing data and more information. 34 35 APP=Javac 36 CMDLINE="com.sun.tools.javac.Main HelloWorld.java" 37 38 source ../lib/bench-lib-new-workflow.sh 39 40 # Example of comparing two leyden builds 41 # 42 # $ bash run_bench.sh /bld/leyden/new/bin/java /bld/leyden/old/bin/java 43 # ===report.csv================================================ 44 # Run,1_xoff,1_xon,1_aot,2_xoff,2_xon,2_aot 45 # 1,251.04000,144.48000,93.34000,254.87000,150.73000,86.31000 46 # 2,241.86000,156.01000,94.01000,262.28000,147.82000,93.03000 47 # 3,248.77000,138.17000,84.51000,242.18000,132.86000,87.26000 48 # 4,249.83000,162.71000,94.93000,247.70000,152.60000,85.95000 49 # 5,249.90000,157.8000,88.98000,239.13000,152.79000,89.16000 50 # 6,250.33000,161.91000,84.07000,236.03000,156.12000,85.63000 51 # 7,244.62000,122.86000,75.37000,248.32000,142.14000,91.10000 52 # 8,255.41000,118.35000,83.61000,233.07000,130.12000,90.43000 53 # 9,244.33000,153.18000,81.47000,250.07000,150.15000,91.92000 54 # 10,247.32000,129.58000,79.58000,244.58000,154.66000,82.08000 55 # ==============================jvm1 /bld/leyden/new/bin/java 56 # [1_xoff] Premain JDK (CDS disabled) 248.31 ms 57 # [1_xon ] Premain JDK (CDS enabled) 143.63 ms 58 # [1_aot ] Premain Prototype (CDS + Training Data + AOT) 85.76 ms 59 # ==============================jvm2 /bld/leyden/old/bin/java 60 # [2_xoff] Premain JDK (CDS disabled) 245.68 ms 61 # [2_xon ] Premain JDK (CDS enabled) 146.74 ms 62 # [2_aot ] Premain Prototype (CDS + Training Data + AOT) 88.23 ms