File: fake.py

package info (click to toggle)
python-coverage 7.6.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,120 kB
  • sloc: python: 30,196; ansic: 1,181; javascript: 773; makefile: 293; sh: 107; xml: 48
file content (32 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from benchmark import *

class ProjectSlow(EmptyProject):
    def __init__(self):
        super().__init__(slug="slow", fake_durations=[23.9, 24.2])

class ProjectOdd(EmptyProject):
    def __init__(self):
        super().__init__(slug="odd", fake_durations=[10.1, 10.5, 9.9])


run_experiment(
    py_versions=[
        Python(3, 10),
        Python(3, 11),
    #    Python(3, 12),
    ],
    cov_versions=[
        Coverage("753", "coverage==7.5.3"),
        CoverageSource("~/coverage"),
    ],
    projects=[
        ProjectSlow(),
        ProjectOdd(),
    ],
    rows=["cov", "proj"],
    column="pyver",
    ratios=[
        ("11 vs 10", "python3.11", "python3.10"),
    #    ("12 vs 11", "python3.12", "python3.11"),
    ],
)