|
32 | 32 |
|
33 | 33 | PATH_BENCH = os.path.join(_BASE_PATH, 'benchmarks')
|
34 | 34 | PATH_MICRO = os.path.join(_BASE_PATH, 'micro')
|
35 |
| -PATH_MACRO = os.path.join(_BASE_PATH, 'macro') |
36 | 35 | PATH_MESO = os.path.join(_BASE_PATH, 'meso')
|
| 36 | +PATH_MACRO = os.path.join(_BASE_PATH, 'macro') |
37 | 37 |
|
38 | 38 | # TODO: add/enable interop benchmarks
|
39 | 39 | # PATH_INTEROP = os.path.join(_BASE_PATH, 'interop')
|
|
51 | 51 | #
|
52 | 52 | # _compile_interop()
|
53 | 53 |
|
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 |
| - |
108 | 54 | # ----------------------------------------------------------------------------------------------------------------------
|
109 | 55 | #
|
110 | 56 | # the python micro benchmarks
|
|
143 | 89 | 'special-len': ITER_10 + ['5'],
|
144 | 90 | }
|
145 | 91 |
|
| 92 | + |
146 | 93 | 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'], |
147 | 120 | }
|
148 | 121 |
|
| 122 | + |
149 | 123 | MACRO_BENCHMARKS = {
|
150 | 124 | 'gcbench': ITER_10 + ['10'],
|
151 | 125 | }
|
|
164 | 138 | "micro": [PATH_MICRO, MICRO_BENCHMARKS],
|
165 | 139 | "meso": [PATH_MESO, MESO_BENCHMARKS],
|
166 | 140 | "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], |
173 | 142 | }
|
0 commit comments