Skip to content

Commit c6da3bd

Browse files
committed
[GR-69781] Add c-* benchmarks to micro-small suite
PullRequest: graalpython/4021
2 parents 569beae + 8ffb33c commit c6da3bd

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

graalpython/com.oracle.graal.python.benchmarks/python/meso/threadring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# Copyright 2008-2010 Isaac Gouy
33
# Copyright (c) 2013, 2014, Regents of the University of California
4-
# Copyright (c) 2017, 2021, Oracle and/or its affiliates.
4+
# Copyright (c) 2017, 2025, Oracle and/or its affiliates.
55
# All rights reserved.
66
#
77
# Revised BSD license
@@ -54,7 +54,7 @@ def worker(worker_id):
5454
if n > 0:
5555
n = (yield (n - 1))
5656
else:
57-
print(worker_id)
57+
# print(worker_id)
5858
return
5959

6060

graalpython/com.oracle.graal.python.benchmarks/python/micro/c-call-method-minimal.py renamed to graalpython/com.oracle.graal.python.benchmarks/python/micro/c-call-method-int-float.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
5252
static PyModuleDef c_min_method_module = {
5353
PyModuleDef_HEAD_INIT,
54-
"int_float_method_module",
54+
"minimal_method_module",
5555
NULL,
5656
-1,
5757
MyModuleMethods
@@ -70,7 +70,6 @@
7070

7171
# ~igv~: function_root_count_at
7272
def count(num):
73-
print("###### NUM: " + str(num))
7473
for i in range(num):
7574
if 42 != as_double(42):
7675
raise RuntimeError()

graalpython/com.oracle.graal.python.benchmarks/python/micro/c-call-method.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -146,7 +146,6 @@
146146

147147
# ~igv~: function_root_count_at
148148
def count(num):
149-
print("###### NUM: " + str(num))
150149
obj = NativeCustomType()
151150
total = 0
152151
for i in range(num):

mx.graalpython/mx_graalpython_bench_param.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@
170170
'with-exception': ITER_6 + WARMUP_2 + ['5_000_000'],
171171
'tuple-indexing-from-constructor': ITER_6 + WARMUP_2 + ['250_000'],
172172
'tuple-indexing-from-literal': ITER_6 + WARMUP_2 + ['400_000'],
173+
'c-member-access': ITER_5 + ['30'],
174+
'c-list-iterating-obj': ITER_5 + ['500000'],
175+
'c-magic-bool': ITER_5 + ['1000000'],
176+
'c-magic-iter': ITER_5 + ['500000'],
177+
'c-arith-binop': ITER_5 + ['3'],
178+
'c-arith-binop2': ITER_5 + ['5'],
179+
'c-call-classmethod': ITER_5 + ['200000'],
180+
'c-issubtype-polymorphic-forced-to-native': ITER_5 + ['100000'],
181+
'c-issubtype-polymorphic': ITER_5 + ['100000'],
182+
'c-issubtype-monorphic': ITER_5 + ['200000'],
183+
'c-call-method': ITER_5 + ['50000'],
184+
'c-call-method-int-float': ITER_5 + ['500000'],
173185
}
174186

175187
def _pickling_benchmarks(module='pickle'):
@@ -343,5 +355,4 @@ def _pickling_benchmarks(module='pickle'):
343355
"allocate-objects": [],
344356
}],
345357
"micro-small-heap": [PATH_MICRO, MICRO_BENCHMARKS_SMALL],
346-
"micro-native-heap": [PATH_MICRO, MICRO_NATIVE_BENCHMARKS],
347358
}

0 commit comments

Comments
 (0)