Skip to content

Commit 3586535

Browse files
committed
test: latest benchmark runs
1 parent 5467e1f commit 3586535

File tree

1 file changed

+10
-38
lines changed

1 file changed

+10
-38
lines changed

benchmark/run.py

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,28 @@
7272
],
7373
)
7474

75-
76-
if 0:
77-
# Compare two Python versions
78-
v1 = 10
79-
v2 = 11
75+
if 1:
76+
# Compare N Python versions
77+
vers = [10, 11, 12, 13]
8078
run_experiment(
81-
py_versions=[
82-
Python(3, v1),
83-
Python(3, v2),
84-
],
79+
py_versions=[Python(3, v) for v in vers],
8580
cov_versions=[
86-
Coverage("753", "coverage==7.5.3"),
81+
Coverage("761", "coverage==7.6.1"),
8782
],
8883
projects=[
8984
ProjectMashumaro(),
85+
ProjectPygments(),
86+
ProjectMypy(),
9087
],
9188
rows=["cov", "proj"],
9289
column="pyver",
9390
ratios=[
94-
(f"3.{v2} vs 3.{v1}", f"python3.{v2}", f"python3.{v1}"),
91+
(f"3.{b} vs 3.{a}", f"python3.{b}", f"python3.{a}")
92+
for a, b in zip(vers, vers[1:])
9593
],
9694
)
9795

98-
if 1:
96+
if 0:
9997
# Compare sysmon on many projects
10098

10199
run_experiment(
@@ -174,29 +172,3 @@
174172
(f"sysmon%", "sysmon", "nocov"),
175173
],
176174
)
177-
178-
if 0:
179-
# Compare 3.12 coverage vs no coverage
180-
run_experiment(
181-
py_versions=[
182-
Python(3, 12),
183-
],
184-
cov_versions=[
185-
NoCoverage("nocov"),
186-
Coverage("732", "coverage==7.3.2"),
187-
CoverageSource(
188-
slug="sysmon",
189-
env_vars={"COVERAGE_CORE": "sysmon"},
190-
),
191-
],
192-
projects=[
193-
ProjectMashumaro(), # small: "-k ck"
194-
ProjectMashumaroBranch(), # small: "-k ck"
195-
],
196-
rows=["pyver", "proj"],
197-
column="cov",
198-
ratios=[
199-
(f"732%", "732", "nocov"),
200-
(f"sysmon%", "sysmon", "nocov"),
201-
],
202-
)

0 commit comments

Comments
 (0)