Skip to content

Commit f8f91e3

Browse files
committed
[GR-23651] resize bench
PullRequest: graalpython/1051
2 parents bfd394a + 9f3a9f5 commit f8f91e3

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

graalpython/com.oracle.graal.python.benchmarks/python/micro/pickle_bench.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ def __process_args__(multiplier):
6262
return int(multiplier),
6363

6464

65-
def __teardown__(multiplier):
65+
def __teardown__():
6666
pass
6767

6868

6969
def __benchmark__(multiplier):
70-
dumped = [dumps(s) for s in DATA]
71-
loaded = [loads(b) for b in dumped]
72-
print("loaded DATA are the same as dumped DATA: ", loaded == DATA)
70+
for s in DATA:
71+
b = dumps(s)
72+
v = loads(b)
73+

mx.graalpython/mx_graalpython_bench_param.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@
103103

104104
def _pickling_benchmarks(module='pickle'):
105105
return {
106-
'{}-strings'.format(module): ITER_35 + ['40'],
107-
'{}-lists'.format(module): ITER_35 + ['20'],
108-
'{}-dicts'.format(module): ITER_35 + ['10'],
109-
'{}-objects'.format(module): ITER_35 + ['300'],
110-
'{}-funcs'.format(module): ITER_35 + ['400'],
106+
'{}-strings'.format(module): ITER_35 + ['10'],
107+
'{}-lists'.format(module): ITER_35 + ['10'],
108+
'{}-dicts'.format(module): ITER_35 + ['5'],
109+
'{}-objects'.format(module): ITER_35 + ['100'],
110+
'{}-funcs'.format(module): ITER_35 + ['200'],
111111
}
112112

113113

0 commit comments

Comments
 (0)