GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — graalpython/mx.graalpython/mx_graalpython_bench_param.py at develop · isaiah/graalpython

Expand file tree

/

mx_graalpython_bench_param.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
155 lines (142 loc) · 5.36 KB
/

mx_graalpython_bench_param.py

Copy path

File metadata and controls

155 lines (142 loc) · 5.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# Copyright (c) 2017, 2018, Oracle and/or its affiliates.
# Copyright (c) 2013, Regents of the University of California
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of
# conditions and the following disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
import os
import mx
py = ".py"
pathBench = "graalpython/benchmarks/src/benchmarks/"
pathMicro = "graalpython/benchmarks/src/micro/"
pathInterop = "graalpython/benchmarks/src/interop/"
def _compile_interop():
cc = os.path.join(mx.suite('graalpython').dir, 'graalpython', 'bin', 'sulongcc')
fp = os.path.join(mx.suite('graalpython').dir, pathInterop)
src = "%s/cextmodule.c" % fp
bc = "%s/cextmodule.bc" % fp
if os.path.exists(cc):
if not os.path.exists(bc) or os.stat(src).st_atime > os.stat(bc).st_atime:
os.system("%s %s 2>/dev/null >/dev/null" % (cc, src))
_compile_interop()
pythonGeneratorBenchmarks = {
'euler31-timed': ['200'],
'euler11-timed': ['10000'],
'ai-nqueen-timed': ['10'],
'pads-eratosthenes-timed': ['100000'],
'pads-integerpartitions': ['700'],
'pads-lyndon': ['100000000'],
'python-graph-bench': ['200'],
'simplejson-bench': ['10000'],
# 'whoosh-bench' : '5000',
# 'pymaging-bench' : '5000',
# 'sympy-bench' : '20000',
}
pythonObjectBenchmarks = {
'richards3-timed': ['200'],
'bm-float-timed': ['1000'],
'pypy-chaos-timed': ['1000'],
'pypy-go-timed': ['50'],
'pypy-deltablue': ['2000'],
}
pythonBenchmarks = {
'binarytrees3t': ['18'],
'fannkuchredux3t': ['11'],
'fasta3t': ['25000000'],
'mandelbrot3t': ['4000'],
'meteor3t': ['2098'],
'nbody3t': ['5000000'],
'spectralnorm3t': ['3000'],
'pidigits-timed': ['0'],
'euler31-timed': ['200'],
'euler11-timed': ['10000'],
'ai-nqueen-timed': ['10'],
'pads-eratosthenes-timed': ['100000'],
'pads-integerpartitions': ['700'],
'pads-lyndon': ['100000000'],
'richards3-timed': ['200'],
'bm-float-timed': ['1000'],
'pypy-chaos-timed': ['1000'],
'pypy-go-timed': ['50'],
'pypy-deltablue': ['2000'],
'python-graph-bench': ['200'],
'simplejson-bench': ['10000'],
'sieve': ['100000'],
# 'whoosh-bench' : '5000',
# type not supported to adopt to Jython! <scoring.WeightScorer...
# 'pymaging-bench' : '5000',
# Multiple super class is not supported yet! + File "JYTHON.jar/Lib/abc.py", line 32, in abstractmethod
# AttributeError: 'str' object has no attribute '__isabstractmethod__'
# 'sympy-bench' : '20000',
# ImportError: No module named core
}
# ----------------------------------------------------------------------------------------------------------------------
#
# the python micro benchmarks
#
# ----------------------------------------------------------------------------------------------------------------------
# TODO: commented out benchmarks are probably too slow atm, revisit this at a later time once performance picks up
pythonMicroBenchmarks = {
'arith-binop': [],
'attribute-access': [],
'attribute-access-polymorphic': [],
# 'attribute-bool': [],
# 'boolean-logic': [],
'builtin-len': [],
'builtin-len-tuple': [],
'call-method-polymorphic': [],
'for-range': [],
'function-call': [],
'generator': [],
'generator-notaligned': [],
'generator-expression': [],
'genexp-builtin-call': [],
'list-comp': [],
'list-indexing': [],
'list-iterating': [],
'math-sqrt': [],
# 'object-allocate': [],
# 'object-layout-change': [],
# 'special-add': [],
# 'special-add-int': [],
# 'special-len': [],
}
# XXX: testing
# pythonBenchmarks = {
# 'binarytrees3t' : ['8'],
# 'mandelbrot3t' : ['300'],
# 'ai-nqueen-timed' : ['5'],
# }
# pythonMicroBenchmarks = {
# 'arith-binop' : [],
# 'for-range' : [],
# }
pythonInteropBenchmarks = {
'cext-modulo': [],
'for-range-cext': [],
}
# helper list
benchmarks_list = {
"normal": [pathBench, pythonBenchmarks],
"micro": [pathMicro, pythonMicroBenchmarks],
"generator": [pathBench, pythonGeneratorBenchmarks],
"object": [pathBench, pythonObjectBenchmarks],
"interop": [pathInterop, pythonInteropBenchmarks],
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.