Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pyperformance/data-files/benchmarks/bm_go/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,6 @@ def versus_cpu():


if __name__ == "__main__":
kw = {}
if pyperf.python_has_jit():
# PyPy needs to compute more warmup values to warmup its JIT
kw['warmups'] = 50
runner = pyperf.Runner(**kw)
runner = pyperf.Runner()
runner.metadata['description'] = "Test the performance of the Go benchmark"
runner.bench_func('go', versus_cpu)
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,7 @@ def add_cmdline_args(cmd, args):


if __name__ == "__main__":
kw = {'add_cmdline_args': add_cmdline_args}
if pyperf.python_has_jit():
# PyPy needs to compute more warmup values to warmup its JIT
kw['warmups'] = 15
runner = pyperf.Runner(**kw)
runner = pyperf.Runner(add_cmdline_args=add_cmdline_args)
levels = sorted(LEVELS)
runner.argparser.add_argument("--level", type=int,
choices=levels,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ def run_client():
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

kw = {}
if pyperf.python_has_jit():
# PyPy needs to compute more warmup values to warmup its JIT
kw['warmups'] = 30
runner = pyperf.Runner(**kw)
runner = pyperf.Runner()
runner.metadata['description'] = ("Test the performance of HTTP requests "
"with Tornado.")
runner.bench_time_func('tornado_http', bench_tornado)
10 changes: 6 additions & 4 deletions pyperformance/data-files/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#
# This file is autogenerated by pip-compile with python 3.11
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --output-file=requirements.txt requirements.in
#
packaging==21.3
# via -r requirements.in
psutil==5.9.0
# via -r requirements.in
# via
# -r requirements.in
# pyperf
pyparsing==3.0.8
# via packaging
pyperf==2.5.0
pyperf==2.6.0
# via -r requirements.in
toml==0.10.2
# via -r requirements.in