Skip to content

Commit 70ccc93

Browse files
committed
Add Truffle compilation benchmarking job
1 parent 2ffb430 commit 70ccc93

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

truffle/ci/ci.jsonnet

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
["cd", "./compiler"],
3434
["mx", "build" ],
3535
["mx", "hsdis", "||", "true"],
36-
]
36+
],
37+
notify_groups:: ["truffle"],
38+
upload:: ["bench-uploader.py", "${BENCH_RESULTS_FILE_PATH}"],
3739
},
3840

3941
local simple_tool_maven_project_gate = truffle_common + {
@@ -138,7 +140,7 @@
138140
],
139141
timelimit: "3:00:00",
140142
teardown: [
141-
["bench-uploader.py", "${BENCH_RESULTS_FILE_PATH}"],
143+
self.upload,
142144
],
143145
},
144146

@@ -149,6 +151,14 @@
149151
],
150152
},
151153

154+
local truffle_compiler_benchmark = bench_common + {
155+
name: self.name_prefix + 'truffle-compiler-benchmark-' + self.truffle_jdk_name + '-' + self.os + '-' + self.arch,
156+
run+: [
157+
["mx", "--java-home", "$JAVA_HOME", "benchmark", "truffle:*", "--results-file", "${BENCH_RESULTS_FILE_PATH}", "--", "--jvm", "java-home", "--", "org.graalvm.truffle.compiler.benchmark", "-prof", "org.graalvm.truffle.compiler.benchmark.CompilationTimingsProfiler"],
158+
self.upload,
159+
],
160+
},
161+
152162
local tier1 = common.tier1 + {
153163
name_prefix: "gate-",
154164
timelimit: "0:30:00"
@@ -244,7 +254,10 @@
244254

245255
# Truffle Benchmarks
246256
[linux_amd64 + tier3 + jdk_latest_labs + jmh_benchmark_test],
247-
[bench_hw.x52 + bench + jdk_latest_labs + jmh_benchmark]
257+
[bench_hw.x52 + bench + jdk_latest_labs + jmh_benchmark],
258+
259+
# Truffle compilation benchmarks
260+
[linux_amd64 + bench + jdk_latest_graalvm_ce + truffle_compiler_benchmark],
248261
]),
249262
builds: utils.add_defined_in(_builds, std.thisFile),
250263
}

0 commit comments

Comments
 (0)