Skip to content

Commit 5e6d663

Browse files
authored
Upgrade to pyperf 2.6.0 (#272)
* Upgrade to pyperf 2.6.0 * Remove use of pypy warmup kwarg in all (3) benchmarks See discussion in #272 (comment) This argument doesn't do anything [since 2017](psf/pyperf@d21fee8#diff-80086baf88b49811bed7ea6f51429845ec5c6494f2c5ed0214f94add87631e54L140), and was [removed from the runner interface](psf/pyperf@d5349bb#diff-d1600cb0c5deea10c84136091897ee5086097ac9e35be850235c1f28b7a48316L74).
1 parent c4fcdd9 commit 5e6d663

File tree

4 files changed

+9
-19
lines changed

4 files changed

+9
-19
lines changed

pyperformance/data-files/benchmarks/bm_go/run_benchmark.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,6 @@ def versus_cpu():
452452

453453

454454
if __name__ == "__main__":
455-
kw = {}
456-
if pyperf.python_has_jit():
457-
# PyPy needs to compute more warmup values to warmup its JIT
458-
kw['warmups'] = 50
459-
runner = pyperf.Runner(**kw)
455+
runner = pyperf.Runner()
460456
runner.metadata['description'] = "Test the performance of the Go benchmark"
461457
runner.bench_func('go', versus_cpu)

pyperformance/data-files/benchmarks/bm_hexiom/run_benchmark.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,7 @@ def add_cmdline_args(cmd, args):
651651

652652

653653
if __name__ == "__main__":
654-
kw = {'add_cmdline_args': add_cmdline_args}
655-
if pyperf.python_has_jit():
656-
# PyPy needs to compute more warmup values to warmup its JIT
657-
kw['warmups'] = 15
658-
runner = pyperf.Runner(**kw)
654+
runner = pyperf.Runner(add_cmdline_args=add_cmdline_args)
659655
levels = sorted(LEVELS)
660656
runner.argparser.add_argument("--level", type=int,
661657
choices=levels,

pyperformance/data-files/benchmarks/bm_tornado_http/run_benchmark.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ def run_client():
9696
import asyncio
9797
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
9898

99-
kw = {}
100-
if pyperf.python_has_jit():
101-
# PyPy needs to compute more warmup values to warmup its JIT
102-
kw['warmups'] = 30
103-
runner = pyperf.Runner(**kw)
99+
runner = pyperf.Runner()
104100
runner.metadata['description'] = ("Test the performance of HTTP requests "
105101
"with Tornado.")
106102
runner.bench_time_func('tornado_http', bench_tornado)
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.11
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in
66
#
77
packaging==21.3
88
# via -r requirements.in
99
psutil==5.9.0
10-
# via -r requirements.in
10+
# via
11+
# -r requirements.in
12+
# pyperf
1113
pyparsing==3.0.8
1214
# via packaging
13-
pyperf==2.5.0
15+
pyperf==2.6.0
1416
# via -r requirements.in
1517
toml==0.10.2
1618
# via -r requirements.in

0 commit comments

Comments
 (0)