Skip to content

Commit

Permalink
benchmark: compare current working dir against latest shipped coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jun 20, 2024
1 parent 111e1cb commit 9f4a152
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions lab/benchmark/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
)


if 1:
if 0:
# Compare two Python versions
v1 = 10
v2 = 11
Expand All @@ -76,6 +76,27 @@
],
)

if 1:
# Compare current Coverage source against shipped version
run_experiment(
py_versions=[
Python(3, 11),
],
cov_versions=[
Coverage("pip", "coverage"),
CoverageSource("../..", "latest"),
],
projects=[
ProjectMashumaro(),
ProjectOperator(),
],
rows=["pyver", "proj"],
column="cov",
ratios=[
(f"Latest vs shipped", "latest", "pip"),
],
)

if 0:
# Compare 3.12 coverage vs no coverage
run_experiment(
Expand All @@ -87,7 +108,7 @@
Coverage("732", "coverage==7.3.2"),
CoverageSource(
slug="sysmon",
directory="/Users/nbatchelder/coverage/trunk",
directory="../..",
env_vars={"COVERAGE_CORE": "sysmon"},
),
],
Expand Down

0 comments on commit 9f4a152

Please sign in to comment.