aboutsummaryrefslogtreecommitdiff
path: root/jdk10-specjbb2015-benchmark.yaml
blob: 1be838fbd659162dcfe11ce492221765abcc76ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
- job:
    name: jdk10-specjbb2015-benchmark
    project-type: matrix
    defaults: global
    description: |
        * Runs the specjbb2015 benchmark in composite mode (i.e., single VM, single node).
    properties:
        - authorization:
            linaro:
                - job-read
            openjdk-members:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 10
            artifact-num-to-keep: 5
    disabled: false
    node: aarch64-06
    display-name: 'OpenJDK 10 - Run SPECjbb2015 benchmark'
    axes:
        - axis:
            type: user-defined
            name: JVM_VARIANT
            values:
                - server
                - client
        - axis:
            type: user-defined
            name: BUILD_TYPE
            values:
                - release
        - axis:
            type: slave
            name: label
            values:
                - aarch64-06
    execution-strategy:
        sequential: true
    wrappers:
        - workspace-cleanup:
            dirmatch: false
        - timestamps
        - matrix-tie-parent:
            node: aarch64-06
    builders:
# copyartifact is slow and the file is local
# copy instead of going back and forth between master <-> slave
#        - copyartifact:
#            project: jdk10-build-image
#            filter: 'out/jdk10-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz'
#            target: incoming
#            flatten: true
        - copyartifact:
            project: archive-specjbb2015-product-tarball
            filter: 'out/SPECjbb2015.tgz'
            target: incoming
            flatten: true
        - shell: |
            #!/bin/bash

            set -exu
            #
            # client variant uses server with -XX:TieredStopAtLevel=1
            # zero is a third possible value.
            REAL_VARIANT=${JVM_VARIANT/client/server}

            ## Extract jdk
            tar xf ~/workspace/jdk10-build-image/BUILD_TYPE/${BUILD_TYPE}/JVM_VARIANT/${REAL_VARIANT}/label/${NODE_NAME}/out/jdk10-${REAL_VARIANT}-${BUILD_TYPE}.tar.gz
            export JAVA_HOME=${WORKSPACE}/jdk10-${REAL_VARIANT}-${BUILD_TYPE}
            export PATH=$JAVA_HOME/bin:$PATH
            which java
            java -version

            ## Extract specjbb2015 product
            tar xf incoming/SPECjbb2015.tgz

            ## Run test

            SPECJBB_PRODUCT_HOME=SPECjbb2015

            # This commented-out invocation is a quick test that
            # takes about 10 minutes to complete - which can be
            # useful when debugging.

            #(cd $SPECJBB_PRODUCT_HOME; \
            # time java \
            #   -Dspecjbb.controller.rtcurve.duration.min=500 \
            #   -Dspecjbb.controller.rtcurve.duration.max=1500 \
            #   -Dspecjbb.controller.type=PRESET \
            #   -Dspecjbb.controller.preset.ir=4000 \
            #   -Dspecjbb.controller.preset.duration=100 \
            #   -jar specjbb2015.jar -m composite)

            if [ $JVM_VARIANT = "server" ]; then
                (cd $SPECJBB_PRODUCT_HOME; java --add-modules java.se.ee -XX:+UseLargePages -XX:-UseBiasedLocking -Xmx12g -Xms12g -XX:+UseParallelOldGC -jar specjbb2015.jar -m composite)
            else
                (cd $SPECJBB_PRODUCT_HOME; java --add-modules java.se.ee  -XX:TieredStopAtLevel=1 -XX:+UseLargePages -XX:-UseBiasedLocking -Xmx12g -Xms12g -XX:+UseParallelOldGC -jar specjbb2015.jar -m composite)
            fi

            mkdir -p out

            datafile=$(basename $(echo $SPECJBB_PRODUCT_HOME/specjbb*.data.gz) | sed "s/\(specjbb2015\)/\1-${JVM_VARIANT}-${BUILD_TYPE}/")

            cp $SPECJBB_PRODUCT_HOME/specjbb*.data.gz out/$datafile

            java -jar $SPECJBB_PRODUCT_HOME/specjbb2015.jar \
              -m REPORTER \
              -raw $SPECJBB_PRODUCT_HOME/config/template-M.raw \
              -p $SPECJBB_PRODUCT_HOME/config/specjbb2015.props \
              -s $SPECJBB_PRODUCT_HOME/specjbb2015-C-*.data.gz \
              -l 1

            tar -acf out/specjbb-result-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz result

            rm -rf html
            mkdir html
            cp -a result/**/report-00001/* html
            cp html/*0001.html html/index.html
    publishers:
        - archive:
            artifacts: 'out/*.gz'
        - html-publisher:
            name: 'HTML Report'
            dir: 'html'
            files: 'index.html'
            keep-all: true