blob: 12a37ffb0537d7be10845583f623a3472206b518 [file] [log] [blame]
Stuart Monteith3bc3d182017-11-02 11:00:29 +00001- job:
2 name: jdkX-specjbb2015-benchmark
3 project-type: matrix
4 defaults: global
5 description: |
6 * Runs the specjbb2015 benchmark in composite mode (i.e., single VM, single node).
7 properties:
8 - authorization:
Benjamin Copeland9dc2eb82022-10-11 12:40:33 +01009 everyone-flat:
Stuart Monteith3bc3d182017-11-02 11:00:29 +000010 - job-read
11 openjdk-members:
12 - job-build
13 - job-cancel
14 - build-discarder:
15 days-to-keep: 30
16 num-to-keep: 10
17 artifact-num-to-keep: 5
Riku Voipiob7c49aa2020-12-01 15:15:24 +020018 disabled: true
Stuart Monteith87f38472018-10-03 10:32:45 +010019 node: j12-qrep-01
Stuart Monteith37c11012017-11-07 11:15:28 +000020 display-name: 'OpenJDK JDK - Run SPECjbb2015 benchmark'
Stuart Monteith3bc3d182017-11-02 11:00:29 +000021 axes:
22 - axis:
23 type: user-defined
Stuart Monteith3bc3d182017-11-02 11:00:29 +000024 name: BUILD_TYPE
25 values:
26 - release
27 - axis:
28 type: slave
29 name: label
30 values:
Stuart Monteith87f38472018-10-03 10:32:45 +010031 - j12-qrep-01
Stuart Monteith3bc3d182017-11-02 11:00:29 +000032 execution-strategy:
33 sequential: true
34 wrappers:
35 - workspace-cleanup:
36 dirmatch: false
37 - timestamps
38 - matrix-tie-parent:
Stuart Monteith87f38472018-10-03 10:32:45 +010039 node: j12-qrep-01
Stuart Monteith3bc3d182017-11-02 11:00:29 +000040 builders:
Stuart Monteith3bc3d182017-11-02 11:00:29 +000041 - shell: |
42 #!/bin/bash
43
44 set -exu
Stuart Monteith3bc3d182017-11-02 11:00:29 +000045
46 ## Extract jdk
Stuart Monteith087485e2018-10-16 16:25:21 +010047 tar xf ~/workspace/jdkX-build-image/BUILD_TYPE/${BUILD_TYPE}/label/${NODE_NAME}/out/jdkX-${BUILD_TYPE}.tar.gz
48 export JAVA_HOME=${WORKSPACE}/jdkX-${BUILD_TYPE}
Stuart Monteith3bc3d182017-11-02 11:00:29 +000049 export PATH=$JAVA_HOME/bin:$PATH
50 which java
51 java -version
52
53 ## Extract specjbb2015 product
Stuart Monteith79ec3c42019-01-21 22:14:13 +000054 CACHE_FILES=$HOME/srv/jdk-cache
55 tar xf $CACHE_FILES/SPECjbb2015-jdk11.tar.gz
Stuart Monteith3bc3d182017-11-02 11:00:29 +000056
57 ## Run test
58
Stuart Monteithb1cbdfb2018-03-12 11:31:13 +000059 SPECJBB_PRODUCT_HOME=SPECjbb2015-1.00
Stuart Monteith3bc3d182017-11-02 11:00:29 +000060
61 # This commented-out invocation is a quick test that
62 # takes about 10 minutes to complete - which can be
63 # useful when debugging.
64
65 #(cd $SPECJBB_PRODUCT_HOME; \
66 # time java \
67 # -Dspecjbb.controller.rtcurve.duration.min=500 \
68 # -Dspecjbb.controller.rtcurve.duration.max=1500 \
69 # -Dspecjbb.controller.type=PRESET \
70 # -Dspecjbb.controller.preset.ir=4000 \
71 # -Dspecjbb.controller.preset.duration=100 \
72 # -jar specjbb2015.jar -m composite)
73
Stuart Monteith087485e2018-10-16 16:25:21 +010074 (cd $SPECJBB_PRODUCT_HOME; java -XX:+UseLargePages -XX:-UseBiasedLocking -Xmx12g -Xms12g -XX:+UseParallelOldGC -jar specjbb2015.jar -ikv -m composite)
Stuart Monteith3bc3d182017-11-02 11:00:29 +000075
76 mkdir -p out
77
Stuart Monteith087485e2018-10-16 16:25:21 +010078 datafile=$(basename $(echo $SPECJBB_PRODUCT_HOME/specjbb*.data.gz) | sed "s/\(specjbb2015\)/\1-${BUILD_TYPE}/")
Stuart Monteith3bc3d182017-11-02 11:00:29 +000079
80 cp $SPECJBB_PRODUCT_HOME/specjbb*.data.gz out/$datafile
81
82 java -jar $SPECJBB_PRODUCT_HOME/specjbb2015.jar \
83 -m REPORTER \
84 -raw $SPECJBB_PRODUCT_HOME/config/template-M.raw \
85 -p $SPECJBB_PRODUCT_HOME/config/specjbb2015.props \
86 -s $SPECJBB_PRODUCT_HOME/specjbb2015-C-*.data.gz \
87 -l 1
88
Stuart Monteith087485e2018-10-16 16:25:21 +010089 tar -acf out/specjbb-result-${BUILD_TYPE}.tar.gz result
Stuart Monteith3bc3d182017-11-02 11:00:29 +000090
91 rm -rf html
92 mkdir html
93 cp -a result/**/report-00001/* html
94 cp html/*0001.html html/index.html
95 publishers:
96 - archive:
97 artifacts: 'out/*.gz'
98 - html-publisher:
99 name: 'HTML Report'
100 dir: 'html'
101 files: 'index.html'
102 keep-all: true