Skip to content

Commit 3cb0be9

Browse files
committed
Update polybenchmarks import and add jobs.
1 parent 643972b commit 3cb0be9

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

vm/ci/ci_common/common-bench.jsonnet

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
102102
timelimit: '4:00:00',
103103
},
104104

105+
build_polybenchmarks: [
106+
['mx', '--env', '${VM_ENV}', '--dy', 'polybenchmarks', 'sforceimports'],
107+
['mx', '-p', '../../polybenchmarks', 'build_benchmarks'],
108+
['mx', '--dy', 'polybenchmarks', 'build', '--dependencies', 'POLYBENCHMARKS_BENCHMARKS']
109+
],
110+
105111
js_bench_compilation_throughput(pgo): self.vm_bench_common + common.heap.default + {
106112
local mx_libgraal = ["mx", "--env", repo_config.vm.mx_env.libgraal],
107113

@@ -311,8 +317,65 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
311317
],
312318
notify_groups +: ['javascript'],
313319
}
320+
] + [
321+
# Polybenchmarks jobs
322+
self.polybench_vm_gate('linux', 'amd64', 'espresso', name='polybenchmarks') + {
323+
setup+: [
324+
['mx', '--dy', '/espresso', 'build']
325+
] + $.build_polybenchmarks,
326+
run+: [
327+
self.polybench_wrap(['mx', '--dy', '/espresso,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-espresso:gate']),
328+
],
329+
},
330+
self.polybench_vm_daily('linux', 'amd64', 'espresso', 'polybenchmarks') + {
331+
setup+: [
332+
['mx', '--dy', '/espresso', 'build']
333+
] + $.build_polybenchmarks,
334+
run+: [
335+
self.polybench_wrap(['mx', '--dy', '/espresso,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-espresso:benchmark']),
336+
],
337+
},
338+
339+
self.polybench_vm_gate('linux', 'amd64', 'python', name='polybenchmarks') + {
340+
setup+: [
341+
['mx', '--dy', 'graalpython', 'build']
342+
] + $.build_polybenchmarks,
343+
run+: [
344+
self.polybench_wrap(['mx', '--dy', 'graalpython,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-python:gate']),
345+
],
346+
},
347+
self.polybench_vm_daily('linux', 'amd64', 'python', 'polybenchmarks') + {
348+
setup+: [
349+
['mx', '--dy', 'graalpython', 'build']
350+
] + $.build_polybenchmarks,
351+
run+: [
352+
self.polybench_wrap(['mx', '--dy', 'graalpython,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-python:benchmark']),
353+
],
354+
},
355+
356+
self.polybench_vm_gate('linux', 'amd64', 'ruby', name='polybenchmarks') + common.deps.truffleruby + {
357+
environment+: {
358+
RUBY_BENCHMARKS: 'true',
359+
},
360+
setup+: [
361+
['mx', '--dy', 'truffleruby', 'build']
362+
] + $.build_polybenchmarks,
363+
run+: [
364+
self.polybench_wrap(['mx', '--dy', 'truffleruby,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-ruby:gate']),
365+
],
366+
},
367+
self.polybench_vm_daily('linux', 'amd64', 'ruby', 'polybenchmarks') + common.deps.truffleruby + {
368+
environment+: {
369+
RUBY_BENCHMARKS: 'true',
370+
},
371+
setup+: [
372+
['mx', '--dy', 'truffleruby', 'build']
373+
] + $.build_polybenchmarks,
374+
run+: [
375+
self.polybench_wrap(['mx', '--dy', 'truffleruby,polybenchmarks', '--java-home', '${POLYBENCH_JVM}', 'polybench', '--suite', 'polybenchmarks-ruby:benchmark']),
376+
],
377+
},
314378
],
315-
# TODO (GR-60584): reimplement polybenchmarks jobs once polybench is unchained
316379

317380
builds: utils.add_defined_in(builds, std.thisFile),
318381
}

vm/mx.vm/suite.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
{"url": "https://github.com/graalvm/graalpython.git", "kind": "git"},
7272
]
7373
},
74+
{
75+
"name": "polybenchmarks",
76+
"version": "f7c8e4d31ba21a353494adef2ef0b7da66114143",
77+
"dynamic": True,
78+
"urls": [
79+
{"url": "https://github.com/graalvm/polybenchmarks.git", "kind": "git"},
80+
]
81+
},
7482
]
7583
},
7684
"distributions": {

0 commit comments

Comments
 (0)