Skip to content

Commit d2de6d7

Browse files
committed
[hotfix] enable disabled micro-benchmarks
PullRequest: graalpython/162
2 parents e51db75 + 64d365f commit d2de6d7

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

mx.graalpython/mx_graalpython_bench_param.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
2323
# OF THE POSSIBILITY OF SUCH DAMAGE.
2424
import os
25+
2526
import mx
2627

2728
py = ".py"
@@ -101,13 +102,12 @@ def _compile_interop():
101102
# the python micro benchmarks
102103
#
103104
# ----------------------------------------------------------------------------------------------------------------------
104-
# TODO: commented out benchmarks are probably too slow atm, revisit this at a later time once performance picks up
105105
pythonMicroBenchmarks = {
106106
'arith-binop': [],
107107
'attribute-access': [],
108108
'attribute-access-polymorphic': [],
109-
# 'attribute-bool': [],
110-
# 'boolean-logic': [],
109+
'attribute-bool': [],
110+
'boolean-logic': [],
111111
'builtin-len': [],
112112
'builtin-len-tuple': [],
113113
'call-method-polymorphic': [],
@@ -121,11 +121,11 @@ def _compile_interop():
121121
'list-indexing': [],
122122
'list-iterating': [],
123123
'math-sqrt': [],
124-
# 'object-allocate': [],
125-
# 'object-layout-change': [],
126-
# 'special-add': [],
127-
# 'special-add-int': [],
128-
# 'special-len': [],
124+
'object-allocate': [],
125+
'object-layout-change': [],
126+
'special-add': [],
127+
'special-add-int': [],
128+
'special-len': [],
129129
}
130130

131131
# XXX: testing

scripts/bench.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ function info {
4848

4949
function bench-py-hotspot {
5050
info "benchmarking GRAALPYTHON with HOTSPOT"
51-
mx --dynamicimports /graal-enterprise benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config default
51+
mx --dynamicimports /compiler benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config default
5252
}
5353

5454
function bench-py-graal-core {
5555
info "benchmarking GRAALPYTHON with GRAAL-CORE"
56-
mx --dynamicimports /graal-enterprise benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config graal-core
56+
mx --dynamicimports /compiler benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config graal-core
5757
}
5858

59-
function bench-py-graal-enterprise {
60-
info "benchmarking GRAALPYTHON with GRAAL-ENTERPRISE"
61-
mx --dynamicimports /graal-enterprise benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config graal-enterprise
62-
}
59+
# function bench-py-graal-enterprise {
60+
# info "benchmarking GRAALPYTHON with GRAAL-ENTERPRISE"
61+
# mx --dynamicimports /compiler benchmark micro-graalpython:* -- --python-vm graalpython --python-vm-config default --jvm server --jvm-config graal-enterprise
62+
# }
6363

6464
function bench-cpython {
6565
info "benchmarking CPYTHON"
@@ -73,12 +73,11 @@ function bench-pypy {
7373

7474

7575

76-
echo "If you are running this script for the first time, you may consider setting up your local env with <setup_bench_local.sh>"
77-
78-
read -p "core, enterprise, hotspot, cpython, pypy? " vm
76+
# read -p "core, enterprise, hotspot, cpython, pypy? " vm
77+
read -p "core, hotspot, cpython, pypy? " vm
7978
case ${vm} in
8079
'core') bench-py-graal-core;;
81-
'enterprise') bench-py-graal-enterprise;;
80+
# 'enterprise') bench-py-graal-enterprise;;
8281
'hotspot') bench-py-hotspot;;
8382
'cpython') bench-cpython;;
8483
'pypy') bench-pypy;;

0 commit comments

Comments
 (0)