Skip to content

Commit 5a4a798

Browse files
committed
meso suite benchmark parameters are in
1 parent a7f9576 commit 5a4a798

File tree

1 file changed

+30
-61
lines changed

1 file changed

+30
-61
lines changed

mx.graalpython/mx_graalpython_bench_param.py

Lines changed: 30 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
PATH_BENCH = os.path.join(_BASE_PATH, 'benchmarks')
3434
PATH_MICRO = os.path.join(_BASE_PATH, 'micro')
35-
PATH_MACRO = os.path.join(_BASE_PATH, 'macro')
3635
PATH_MESO = os.path.join(_BASE_PATH, 'meso')
36+
PATH_MACRO = os.path.join(_BASE_PATH, 'macro')
3737

3838
# TODO: add/enable interop benchmarks
3939
# PATH_INTEROP = os.path.join(_BASE_PATH, 'interop')
@@ -51,60 +51,6 @@
5151
#
5252
# _compile_interop()
5353

54-
GENERATOR_BENCHMARKS = {
55-
'euler31-timed': ['200'],
56-
'euler11-timed': ['10000'],
57-
'ai-nqueen-timed': ['10'],
58-
'pads-eratosthenes-timed': ['100000'],
59-
'pads-integerpartitions': ['700'],
60-
'pads-lyndon': ['100000000'],
61-
'python-graph-bench': ['200'],
62-
'simplejson-bench': ['10000'],
63-
# 'whoosh-bench' : '5000',
64-
# 'pymaging-bench' : '5000',
65-
# 'sympy-bench' : '20000',
66-
}
67-
68-
OBJECT_BENCHMARKS = {
69-
'richards3-timed': ['200'],
70-
'bm-float-timed': ['1000'],
71-
'pypy-chaos-timed': ['1000'],
72-
'pypy-go-timed': ['50'],
73-
'pypy-deltablue': ['2000'],
74-
}
75-
76-
PYTHON_BENCHMARKS = {
77-
'binarytrees3t': ['18'],
78-
'fannkuchredux3t': ['11'],
79-
'fasta3t': ['25000000'],
80-
'mandelbrot3t': ['4000'],
81-
'meteor3t': ['2098'],
82-
'nbody3t': ['5000000'],
83-
'spectralnorm3t': ['3000'],
84-
'pidigits-timed': ['0'],
85-
'euler31-timed': ['200'],
86-
'euler11-timed': ['10000'],
87-
'ai-nqueen-timed': ['10'],
88-
'pads-eratosthenes-timed': ['100000'],
89-
'pads-integerpartitions': ['700'],
90-
'pads-lyndon': ['100000000'],
91-
'richards3-timed': ['200'],
92-
'bm-float-timed': ['1000'],
93-
'pypy-chaos-timed': ['1000'],
94-
'pypy-go-timed': ['50'],
95-
'pypy-deltablue': ['2000'],
96-
'python-graph-bench': ['200'],
97-
'simplejson-bench': ['10000'],
98-
'sieve': ['100000'],
99-
# 'whoosh-bench' : '5000',
100-
# type not supported to adopt to Jython! <scoring.WeightScorer...
101-
# 'pymaging-bench' : '5000',
102-
# Multiple super class is not supported yet! + File "JYTHON.jar/Lib/abc.py", line 32, in abstractmethod
103-
# AttributeError: 'str' object has no attribute '__isabstractmethod__'
104-
# 'sympy-bench' : '20000',
105-
# ImportError: No module named core
106-
}
107-
10854
# ----------------------------------------------------------------------------------------------------------------------
10955
#
11056
# the python micro benchmarks
@@ -143,9 +89,37 @@
14389
'special-len': ITER_10 + ['5'],
14490
}
14591

92+
14693
MESO_BENCHMARKS = {
94+
# -------------------------------------------------------
95+
# generator benchmarks
96+
# -------------------------------------------------------
97+
'euler31': ITER_10 + ['200'],
98+
'euler11': ITER_10 + ['10000'],
99+
'ai-nqueen': ITER_10 + ['10'],
100+
'pads-eratosthenes': ITER_10 + ['100000'],
101+
'pads-integerpartitions': ITER_10 + ['700'],
102+
# 'pads-lyndon': ITER_10 + ['100000000'], # very slow benchmark compared to the others in this group ~180s / iter
103+
# -------------------------------------------------------
104+
# object benchmarks
105+
# -------------------------------------------------------
106+
'richards3': ITER_10 + ['200'],
107+
'bm-float': ITER_10 + ['1000'],
108+
# -------------------------------------------------------
109+
# normal benchmarks
110+
# -------------------------------------------------------
111+
'binarytrees3': ITER_25 + ['18'],
112+
'fannkuchredux3': ITER_10 + ['11'],
113+
'fasta3': ITER_10 + ['25000000'],
114+
'mandelbrot3': ITER_10 + ['4000'],
115+
'meteor3': ITER_15 + ['2098'],
116+
'nbody3': ITER_10 + ['5000000'],
117+
'spectralnorm3': ITER_10 + ['3000'],
118+
'pidigits': ITER_10 + [],
119+
'sieve': ITER_25 + ['100000'],
147120
}
148121

122+
149123
MACRO_BENCHMARKS = {
150124
'gcbench': ITER_10 + ['10'],
151125
}
@@ -164,10 +138,5 @@
164138
"micro": [PATH_MICRO, MICRO_BENCHMARKS],
165139
"meso": [PATH_MESO, MESO_BENCHMARKS],
166140
"macro": [PATH_MACRO, MACRO_BENCHMARKS],
167-
168-
169-
"normal": [PATH_BENCH, PYTHON_BENCHMARKS],
170-
"generator": [PATH_BENCH, GENERATOR_BENCHMARKS],
171-
"object": [PATH_BENCH, OBJECT_BENCHMARKS],
172-
# "interop": [pathInterop, pythonInteropBenchmarks],
141+
# "interop": [PATH_INTEROP, INTEROP_BENCHMARKS],
173142
}

0 commit comments

Comments
 (0)