-
Notifications
You must be signed in to change notification settings - Fork 185
/
mx_truffleruby_benchmark.py
746 lines (600 loc) · 22.9 KB
/
mx_truffleruby_benchmark.py
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 2.0, or
# GNU General Public License version 2, or
# GNU Lesser General Public License version 2.1.
from __future__ import division
import os
import json
import shlex
import signal
import subprocess
import sys
import time
from os.path import join
import mx
import mx_benchmark
# TODO IMPORTANT: you need RUBY_BENCHMARKS=true for this file to be imported by mx_truffleruby.py
# Utilities
_suite = mx.suite('truffleruby')
rubyDir = _suite.dir
def jt(args, nonZeroIsFatal=True, out=None, err=None, timeout=None, env=None, cwd=None):
jt = join(rubyDir, 'tool', 'jt.rb')
return mx.run(['ruby', jt] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, timeout=timeout, env=env, cwd=cwd)
FNULL = open(os.devnull, 'w')
class BackgroundServerTask:
def __init__(self, args):
self.args = args
def __enter__(self):
if mx._opts.verbose:
mx.log(' '.join(['(background)'] + [shlex.quote(arg) for arg in self.args]))
self.process = subprocess.Popen(self.args, start_new_session=True)
mx._addSubprocess(self.process, self.args)
def __exit__(self, exc_type, value, traceback):
self.process.send_signal(signal.SIGINT)
self.process.wait()
def is_running(self):
return self.process.poll() is None
class BackgroundJT(BackgroundServerTask):
def __init__(self, args):
jt = join(rubyDir, 'tool', 'jt.rb')
BackgroundServerTask.__init__(self, ['ruby', jt] + args)
# Benchmarks
class RubyBenchmarkSuite(mx_benchmark.BenchmarkSuite):
def group(self):
return 'Graal'
def subgroup(self):
return 'truffleruby'
def vmArgs(self, bmSuiteArgs):
return mx_benchmark.splitArgs(bmSuiteArgs, bmSuiteArgs)[0]
def runArgs(self, bmSuiteArgs):
return mx_benchmark.splitArgs(bmSuiteArgs, bmSuiteArgs)[1]
def default_benchmarks(self, bmSuiteArgs):
return self.benchmarkList(bmSuiteArgs)
def run(self, benchmarks, bmSuiteArgs):
def fixUpResult(result):
result.update({
'host-vm': os.environ.get('HOST_VM', 'host-vm'),
'host-vm-config': os.environ.get('HOST_VM_CONFIG', 'host-vm-config'),
'guest-vm': os.environ.get('GUEST_VM', 'guest-vm'),
'guest-vm-config': os.environ.get('GUEST_VM_CONFIG', 'guest-vm-config')
})
return result
return [fixUpResult(r) for b in benchmarks or self.default_benchmarks(bmSuiteArgs) for r in self.runBenchmark(b, bmSuiteArgs)]
def runBenchmark(self, benchmark, bmSuiteArgs):
raise NotImplementedError()
build_stats_benchmarks = {
'binary-size': ['size', 'MiB'],
'build-time': ['time', 's'],
'runtime-compilable-methods': ['count', '#']
}
class BuildStatsBenchmarkSuite(RubyBenchmarkSuite):
def benchmarkList(self, bmSuiteArgs):
return list(build_stats_benchmarks.keys())
def name(self):
return 'build-stats'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['build_stats', benchmark, '--json'] + bmSuiteArgs, out=out)
data = json.loads(out.data)
(metric_name, metric_unit) = build_stats_benchmarks[benchmark]
ret = {
'benchmark': benchmark,
'metric.name': metric_name,
'metric.value': data[benchmark],
'metric.unit': metric_unit,
'metric.better': 'lower',
}
if data[benchmark] == -1:
ret['error'] = 'failed'
return [ret]
metrics_benchmarks = {
'hello': ['-e', "puts 'hello'"],
'compile-mandelbrot': [join(rubyDir, 'bench', 'metrics', 'mandelbrot.rb')]
}
default_metrics_benchmarks = ['hello', 'compile-mandelbrot']
class MetricsBenchmarkSuite(RubyBenchmarkSuite):
def benchmarkList(self, bmSuiteArgs):
return list(metrics_benchmarks.keys())
def default_benchmarks(self, bmSuiteArgs):
return default_metrics_benchmarks
class AllocationBenchmarkSuite(MetricsBenchmarkSuite):
def name(self):
return 'allocation'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['metrics', 'alloc', '--json'] + metrics_benchmarks[benchmark] + bmSuiteArgs, out=out)
data = json.loads(out.data)
return [{
'benchmark': benchmark,
'metric.name': 'memory',
'metric.value': sample,
'metric.unit': 'B',
'metric.better': 'lower',
'metric.iteration': n
} for n, sample in enumerate(data['samples'])]
class InstructionsBenchmarkSuite(MetricsBenchmarkSuite):
def name(self):
return 'instructions'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['metrics', 'instructions', '--json'] + metrics_benchmarks[benchmark] + bmSuiteArgs, out=out)
data = json.loads(out.data)
return [{
'benchmark': benchmark,
'metric.name': 'count',
'metric.value': data['instructions'],
'metric.unit': '#',
'metric.better': 'lower',
}]
class MinHeapBenchmarkSuite(MetricsBenchmarkSuite):
def name(self):
return 'minheap'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['metrics', 'minheap', '--json'] + metrics_benchmarks[benchmark] + bmSuiteArgs, out=out)
data = json.loads(out.data)
return [{
'benchmark': benchmark,
'metric.name': 'memory',
'metric.value': data['min'],
'metric.unit': 'MiB',
'metric.better': 'lower'
}]
class MaxRssBenchmarkSuite(MetricsBenchmarkSuite):
def name(self):
return 'maxrss'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['metrics', 'maxrss', '--json'] + metrics_benchmarks[benchmark] + bmSuiteArgs, out=out)
data = json.loads(out.data)
return [{
'benchmark': benchmark,
'extra.metric.region': region,
'metric.name': 'memory',
'metric.value': sample,
'metric.unit': 'MiB',
'metric.better': 'lower',
'metric.iteration': n
} for region, region_data in data.items() for n, sample in enumerate(region_data['samples'])]
class TimeBenchmarkSuite(MetricsBenchmarkSuite):
def name(self):
return 'time'
def runBenchmark(self, benchmark, bmSuiteArgs):
out = mx.OutputCapture()
jt(['metrics', 'time', '--json'] + metrics_benchmarks[benchmark] + bmSuiteArgs, out=out)
lines = [line for line in out.data.split('\n') if len(line) > 0]
mx.log('\n'.join(lines[0:-1]))
json_data = lines[-1]
mx.log('JSON:')
mx.log(json_data)
data = json.loads(json_data)
return [{
'benchmark': benchmark,
'extra.metric.region': region,
'metric.name': 'time',
'metric.value': sample,
'metric.unit': 'ms',
'metric.better': 'lower',
'metric.iteration': n
} for region, region_data in data.items() for n, sample in enumerate(region_data['samples'])]
class AllBenchmarksBenchmarkSuite(RubyBenchmarkSuite):
def config(self):
return {'kind': 'simple'}
def benchmarkList(self, bmSuiteArgs):
raise NotImplementedError()
def name(self):
raise NotImplementedError()
def time(self):
raise NotImplementedError()
def directory(self):
return self.name()
def filterLines(self, lines):
data = []
for line in lines:
try:
data.append(int(line))
except ValueError:
try:
data.append(float(line))
except ValueError:
mx.log_error(line)
if len(data) % 3 != 0:
raise AssertionError("Number of values not a multiple of 3")
return data
def runBenchmark(self, benchmark, bmSuiteArgs):
directory = self.directory()
if directory is None:
directory, benchmark = benchmark.split('/')
arguments = ['benchmark']
if self.config()['kind'] == 'simple':
arguments.extend(['--simple', '--iterations', '--elapsed'])
time = self.time()
if isinstance(time, dict):
if benchmark in time:
time = str(time[benchmark])
else:
time = str(time['default'])
else:
time = str(self.time())
arguments.extend(['--time', time])
elif self.config()['kind'] == 'fixed-iterations':
iterations_config = self.config()['iterations'][benchmark]
fixed_iterations = sorted(iterations_config.keys())
fixed_iterations_arg = ','.join([str(i) for i in fixed_iterations])
arguments.extend(['--iterations', '--elapsed', '--ips'])
arguments.extend(['--fixed-iterations'])
arguments.extend([fixed_iterations_arg])
if iterations_config != {1:'single-shot'}:
# single-shot benchmarks use subprocesses so startup is already included
arguments.extend(['--start-time', 'START_TIME_SET_BY_JT_BENCHMARK'])
else:
raise AssertionError("Unknown benchmark kind: " + self.config()['kind'])
if ':' in benchmark:
benchmark_file, _, benchmark_name = benchmark.partition(':')
benchmark_names = [benchmark_name]
else:
benchmark_file = benchmark
benchmark_names = []
arguments.extend(['bench/' + directory + '/' + benchmark_file + '.rb'])
arguments.extend(benchmark_names)
arguments.extend(bmSuiteArgs)
out = mx.OutputCapture()
if jt(arguments, out=out, nonZeroIsFatal=False) == 0:
mx.log(out.data)
lines = out.data.split('\n')[1:-1]
data = self.filterLines(lines)
iterations = [d for n, d in enumerate(data) if n % 3 == 0]
elapsed = [d for n, d in enumerate(data) if n % 3 == 1]
samples = [d for n, d in enumerate(data) if n % 3 == 2]
if lines[-1] == 'optimised away':
return [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': sample,
'metric.unit': 'op/s',
'metric.better': 'higher',
'metric.iteration': n,
'extra.metric.warmedup': 'false',
'extra.metric.elapsed-num': e
} for n, (e, sample) in enumerate(zip(elapsed, samples))] + [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': 2147483647, # arbitrary high value (--simple won't run more than this many ips)
'metric.unit': 'op/s',
'metric.better': 'higher',
'metric.iteration': len(samples),
'extra.metric.warmedup': 'true',
'extra.metric.elapsed-num': elapsed[-1] + 2.0 if elapsed else 2.0, # just put the data point beyond the last one a bit
'error': 'optimised away'
}]
elif self.config()['kind'] == 'fixed-iterations':
iteration_config = self.config()['iterations'][benchmark]
return [{
'benchmark': benchmark,
'metric.name': iteration_config[iteration],
'metric.iteration': iteration,
'metric.value': e,
'metric.unit': 's',
'metric.better': 'lower'
} for n, (e, iteration) in enumerate(zip(elapsed, iterations)) if iteration in iteration_config]
else:
return [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': sample,
'metric.unit': 'op/s',
'metric.better': 'higher',
'metric.iteration': n,
'extra.metric.warmedup': 'true' if n / float(len(samples)) >= 0.5 else 'false',
'extra.metric.elapsed-num': e
} for n, (e, sample) in enumerate(zip(elapsed, samples))]
else:
mx.log_error("ERROR:")
mx.log_error(out.data)
return [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': 0,
'metric.unit': 'op/s',
'metric.better': 'higher',
'extra.metric.warmedup': 'true',
'error': 'failed'
}]
classic_benchmarks = [
'aobench',
'binary-trees',
'deltablue',
'fannkuch',
'mandelbrot',
'matrix-multiply',
'n-body',
'neural-net',
'pidigits',
'red-black',
'richards',
'richards-kwargs',
'spectral-norm'
]
classic_benchmark_time = 120
class ClassicBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'classic'
def directory(self):
return 'classic'
def benchmarkList(self, bmSuiteArgs):
return classic_benchmarks
def time(self):
return classic_benchmark_time
chunky_benchmarks = [
'chunky-color-r',
'chunky-color-g',
'chunky-color-b',
'chunky-color-a',
'chunky-color-compose-quick',
'chunky-canvas-resampling-bilinear',
'chunky-canvas-resampling-nearest-neighbor',
'chunky-canvas-resampling-steps-residues',
'chunky-canvas-resampling-steps',
'chunky-decode-png-image-pass',
'chunky-encode-png-image-pass-to-stream',
'chunky-operations-compose',
'chunky-operations-replace'
]
chunky_benchmark_time = 120
class ChunkyBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'chunky'
def directory(self):
return 'chunky_png'
def benchmarkList(self, bmSuiteArgs):
return chunky_benchmarks
def time(self):
return chunky_benchmark_time
psd_benchmarks = [
'psd-color-cmyk-to-rgb',
'psd-compose-color-burn',
'psd-compose-color-dodge',
'psd-compose-darken',
'psd-compose-difference',
'psd-compose-exclusion',
'psd-compose-hard-light',
'psd-compose-hard-mix',
'psd-compose-lighten',
'psd-compose-linear-burn',
'psd-compose-linear-dodge',
'psd-compose-linear-light',
'psd-compose-multiply',
'psd-compose-normal',
'psd-compose-overlay',
'psd-compose-pin-light',
'psd-compose-screen',
'psd-compose-soft-light',
'psd-compose-vivid-light',
'psd-imageformat-layerraw-parse-raw',
'psd-imageformat-rle-decode-rle-channel',
'psd-imagemode-cmyk-combine-cmyk-channel',
'psd-imagemode-greyscale-combine-greyscale-channel',
'psd-imagemode-rgb-combine-rgb-channel',
'psd-renderer-blender-compose',
'psd-renderer-clippingmask-apply',
'psd-renderer-mask-apply',
'psd-util-clamp',
'psd-util-pad2',
'psd-util-pad4'
]
psd_benchmark_time = 120
class PSDBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'psd'
def directory(self):
return 'psd.rb'
def benchmarkList(self, bmSuiteArgs):
return psd_benchmarks
def time(self):
return psd_benchmark_time
image_demo_benchmarks = [
'image-demo-conv',
'image-demo-sobel',
]
image_demo_benchmark_time = 120
class ImageDemoBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'image-demo'
def directory(self):
return 'image-demo'
def benchmarkList(self, bmSuiteArgs):
return image_demo_benchmarks
def time(self):
return image_demo_benchmark_time
asciidoctor_benchmarks = [
'asciidoctor:file-lines',
'asciidoctor:string-lines',
'asciidoctor:read-line',
'asciidoctor:restore-line',
'asciidoctor:quote-match',
'asciidoctor:quote-sub',
'asciidoctor:join-lines',
'asciidoctor-convert',
'asciidoctor-load-file',
]
asciidoctor_benchmark_time = {
'asciidoctor-convert': 400,
'asciidoctor-load-file': 400,
'default': 120
}
class AsciidoctorBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'asciidoctor'
def benchmarkList(self, bmSuiteArgs):
return asciidoctor_benchmarks
def time(self):
return asciidoctor_benchmark_time
class OptcarrotBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'optcarrot'
def directory(self):
return 'optcarrot'
def benchmarkList(self, bmSuiteArgs):
return ['optcarrot']
def time(self):
return 200
synthetic_benchmarks = [
'acid'
]
synthetic_benchmark_time = 120
class SyntheticBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'synthetic'
def benchmarkList(self, bmSuiteArgs):
return synthetic_benchmarks
def time(self):
return synthetic_benchmark_time
micro_benchmark_time = 30
class MicroBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'micro'
def benchmarkList(self, bmSuiteArgs):
# Generates a list similar to `asciidoctor_benchmarks` to handle multiple benchmarks per file
ruby_benchmarks = join(rubyDir, 'bench')
benchmarks = []
micro_dir = join(ruby_benchmarks, 'micro')
for root, _, files in os.walk(micro_dir):
for name in files:
if name.endswith('.rb'):
benchmark_file = join(root, name)
out = mx.OutputCapture()
jt(['benchmark', 'list', benchmark_file], out=out)
benchmark_file_from_micro_dir = benchmark_file[len(micro_dir)+1:-3]
benchmarks.extend([benchmark_file_from_micro_dir + ':' + b.strip() for b in out.data.split('\n') if len(b.strip()) > 0])
return benchmarks
def time(self):
return micro_benchmark_time
savina_benchmarks = [
'savina-apsp',
'savina-radix-sort',
'savina-trapezoidal',
]
class SavinaBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'savina'
def directory(self):
return 'parallel/savina'
def benchmarkList(self, bmSuiteArgs):
return savina_benchmarks
def time(self):
return 120
server_benchmarks = [
'tcp-server',
'webrick'
]
server_benchmark_time = 60 * 4 # Seems unstable otherwise
class ServerBenchmarkSuite(RubyBenchmarkSuite):
def benchmarkList(self, bmSuiteArgs):
return server_benchmarks
def name(self):
return 'server'
def runBenchmark(self, benchmark, bmSuiteArgs):
arguments = ['ruby']
if not bmSuiteArgs:
arguments.extend(['--check-compilation'])
arguments.extend(['bench/servers/' + benchmark + '.rb'])
server = BackgroundJT(arguments + bmSuiteArgs)
with server:
time.sleep(10)
out = mx.OutputCapture()
if mx.run(
['ruby', 'bench/servers/harness.rb', str(server_benchmark_time)],
out=out,
nonZeroIsFatal=False) == 0 and server.is_running():
samples = [float(s) for s in out.data.split('\n')[0:-1]]
mx.log(samples)
half_samples = len(samples) // 2
used_samples = samples[len(samples)-half_samples-1:]
ips = sum(used_samples) / float(len(used_samples))
return [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': ips,
'metric.unit': 'op/s',
'metric.better': 'higher'
}]
else:
sys.stderr.write(out.data)
# TODO CS 24-Jun-16, how can we fail the wider suite?
return [{
'benchmark': benchmark,
'metric.name': 'throughput',
'metric.value': 0,
'metric.unit': 'op/s',
'metric.better': 'higher',
'error': 'failed'
}]
class RubykonBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'rubykon'
def directory(self):
return 'rubykon'
def benchmarkList(self, bmSuiteArgs):
return ['rubykon']
def time(self):
return 120
class LiquidBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'liquid'
def directory(self):
return 'liquid'
def benchmarkList(self, bmSuiteArgs):
return ['liquid-cart-parse', 'liquid-cart-render', 'liquid-middleware']
def time(self):
return 60
warmup_benchmarks = [
'asciidoctor/asciidoctor-convert',
'asciidoctor/asciidoctor-load-file',
'rubykon/rubykon',
]
blog6_benchmarks = [
'rails/blog6-bundle-install',
'rails/blog6-rails-routes',
]
class WarmupBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def config(self):
# NOTE: also update mx.truffleruby/warmup-fork-counts.json when updating this list
iterations = {
'asciidoctor-convert': {10:'startup', 100:'early-warmup', 500:'late-warmup'},
'asciidoctor-load-file': {10:'startup', 100:'early-warmup', 500:'late-warmup'},
'rubykon': {1:'startup', 10:'early-warmup', 30:'late-warmup'},
'blog6-bundle-install': {1:'single-shot'},
'blog6-rails-routes': {1:'single-shot'},
}
return {'kind': 'fixed-iterations', 'iterations': iterations}
def name(self):
return 'ruby-warmup'
def directory(self):
return None
def benchmarkList(self, bmSuiteArgs):
benchmarks = warmup_benchmarks[:]
if os.getenv('HOST_VM') != "jruby":
benchmarks.extend(blog6_benchmarks)
return benchmarks
mx_benchmark.add_bm_suite(BuildStatsBenchmarkSuite())
mx_benchmark.add_bm_suite(AllocationBenchmarkSuite())
mx_benchmark.add_bm_suite(InstructionsBenchmarkSuite())
mx_benchmark.add_bm_suite(MinHeapBenchmarkSuite())
mx_benchmark.add_bm_suite(MaxRssBenchmarkSuite())
mx_benchmark.add_bm_suite(TimeBenchmarkSuite())
mx_benchmark.add_bm_suite(ClassicBenchmarkSuite())
mx_benchmark.add_bm_suite(ChunkyBenchmarkSuite())
mx_benchmark.add_bm_suite(PSDBenchmarkSuite())
mx_benchmark.add_bm_suite(ImageDemoBenchmarkSuite())
mx_benchmark.add_bm_suite(AsciidoctorBenchmarkSuite())
mx_benchmark.add_bm_suite(OptcarrotBenchmarkSuite())
mx_benchmark.add_bm_suite(SyntheticBenchmarkSuite())
mx_benchmark.add_bm_suite(MicroBenchmarkSuite())
mx_benchmark.add_bm_suite(SavinaBenchmarkSuite())
mx_benchmark.add_bm_suite(ServerBenchmarkSuite())
mx_benchmark.add_bm_suite(RubykonBenchmarkSuite())
mx_benchmark.add_bm_suite(LiquidBenchmarkSuite())
mx_benchmark.add_bm_suite(WarmupBenchmarkSuite())