Skip to content

Commit bd8bb23

Browse files
authored
Support benchmark-specific PERF_ITERATIONS from perfConfig.json (#6409)
This patch allows each benchmark in perfConfig.json to define its own PERF_ITERATIONS. If not specified, it falls back to the global parameter or default value (4). Fixes: #6381 Signed-off-by: Phat Diep <[email protected]>
1 parent e802bbe commit bd8bb23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

buildenv/jenkins/perfPipeline_root.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ node("worker || (ci.role.test&&hw.arch.x86&&sw.os.linux)") {
6363
baseParams << string(name: "BENCHMARK", value: item.BENCHMARK)
6464
baseParams << string(name: "TARGET", value: item.TARGET)
6565
baseParams << string(name: "BUILD_LIST", value: item.BUILD_LIST)
66+
baseParams << string(name: "PERF_ITERATIONS", value: item.PERF_ITERATIONS ? item.PERF_ITERATIONS.toString() : "4")
6667

6768
item.PLAT_MACHINE_MAP.each { kv ->
6869
kv.each {p, m ->

perf/config/hotspot/perfConfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"BENCHMARK":"dacapo",
44
"TARGET": "testList TESTLIST=dacapo-h2,dacapo-avrora,dacapo-fop,dacapo-luindex,dacapo-pmd,dacapo-sunflow,dacapo-xalan",
55
"BUILD_LIST": "perf/dacapo",
6+
"PERF_ITERATIONS": 3,
67
"PLAT_MACHINE_MAP":[
78
{"x86-64_linux": "hw.arch.x86&&sw.os.linux&&ci.role.perf"}
89
]

0 commit comments

Comments
 (0)