Skip to content

Commit 60ca04e

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents b64badb + 7b33ce2 commit 60ca04e

File tree

10 files changed

+519
-3
lines changed

10 files changed

+519
-3
lines changed

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
version: 2
55

66
build:
7-
os: ubuntu-22.04
7+
os: ubuntu-lts-latest
88
tools:
9-
python: "3.11"
9+
python: "3"
1010

1111
sphinx:
1212
configuration: doc/conf.py

pyperformance/_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
__all__ = [
33
'BenchmarkSpec',
4-
'Benchmark'
4+
'Benchmark',
55
'check_name',
66
'parse_benchmark',
77
]

pyperformance/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def parse_args():
101101
choices=hook_names,
102102
metavar=f"{', '.join(x for x in hook_names if not x.startswith('_'))}",
103103
help="Apply the given pyperf hook(s) when running each benchmark")
104+
cmd.add_argument("--warmups", type=int, default=None,
105+
help="number of skipped values per run used to warmup the benchmark")
104106
filter_opts(cmd)
105107

106108
# show

pyperformance/data-files/benchmarks/MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ unpack_sequence <local>
9797
unpickle <local:pickle>
9898
unpickle_list <local:pickle>
9999
unpickle_pure_python <local:pickle>
100+
xdsl <local>
100101
xml_etree <local>
101102

102103

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[project]
2+
name = "pyperformance_bm_barnes_hut"
3+
requires-python = ">=3.8"
4+
dependencies = ["pyperf"]
5+
urls = {repository = "https://github.com/python/pyperformance"}
6+
dynamic = ["version"]
7+
8+
[tool.pyperformance]
9+
name = "barnes_hut"
10+
tags = "math"

0 commit comments

Comments
 (0)