Skip to content

Commit a0dc586

Browse files
author
Andrija Kolic
committed
[GR-70813] Support Layered configuration of Barista: Micronaut Shopcart
PullRequest: graal/22431
2 parents a35d0c6 + f6d233b commit a0dc586

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

compiler/ci/OWNERS.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[[rule]]
2+
files = "benchmark-*.libsonnet benchmark-*.jsonnet"
3+
any = [
4+
5+
6+
]

compiler/ci/ci_common/benchmark-suites.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@
9191

9292
barista_template(suite_version=null, suite_name="barista", max_jdk_version=null, cmd_app_prefix=["hwloc-bind --cpubind node:0.core:0-3.pu:0 --membind node:0"], non_prefix_barista_args=[]):: cc.compiler_benchmark + {
9393
suite:: suite_name,
94-
local barista_version = "v0.5.0",
94+
local barista_version = "0.5.1",
9595
local suite_version_args = if suite_version != null then ["--bench-suite-version=" + suite_version] else [],
9696
local prefix_barista_arg = if std.length(cmd_app_prefix) > 0 then [std.format("--cmd-app-prefix=%s", std.join(" ", cmd_app_prefix))] else [],
9797
local all_barista_args = prefix_barista_arg + non_prefix_barista_args,
9898
local barista_args_with_separator = if std.length(all_barista_args) > 0 then ["--"] + all_barista_args else [],
9999
downloads+: {
100100
"WRK": { "name": "wrk", "version": "a211dd5", platformspecific: true},
101101
"WRK2": { "name": "wrk2", "version": "2.1", platformspecific: true},
102-
"BARISTA_BENCHMARKS": { "name": "barista", "version": "0.5.0"}
102+
"BARISTA_BENCHMARKS": { "name": "barista", "version": "0.5.1"}
103103
},
104104
packages+: {
105105
maven: "==3.8.6",

substratevm/mx.substratevm/mx_substratevm_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ def default_stages(self) -> List[str]:
304304
return super().default_stages()
305305

306306
def layers(self, bm_suite_args: List[str]) -> List[Layer]:
307-
if self.benchmarkName() == "micronaut-pegasus":
307+
layered_benchmarks = ["micronaut-pegasus", "micronaut-shopcart"]
308+
if self.benchmarkName() in layered_benchmarks:
308309
return [Layer(0, True), Layer(1, False)]
309-
# Currently, "micronaut-pegasus" is the only benchmark that supports running with layers
310310
# Support for other benchmarks, or even suites? (GR-64772)
311311
mx.abort(f"The '{self.benchmarkName()}' benchmark does not support layered native images!")
312312

0 commit comments

Comments
 (0)