MCPcopy Index your code
hub / github.com/python/mypy / main

Function main

misc/perf_checker.py:67–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def main() -> None:
68 trials = 3
69
70 print("Testing baseline")
71 baseline = trial(
72 trials, Command(lambda: None, lambda: execute(["python3", "-m", "mypy", "mypy"]))
73 )
74 report("Baseline", baseline)
75
76 print("Testing cold cache")
77 cold_cache = trial(
78 trials,
79 Command(
80 lambda: delete_folder(".mypy_cache"),
81 lambda: execute(["python3", "-m", "mypy", "-i", "mypy"]),
82 ),
83 )
84 report("Cold cache", cold_cache)
85
86 print("Testing warm cache")
87 execute(["python3", "-m", "mypy", "-i", "mypy"])
88 warm_cache = trial(
89 trials, Command(lambda: None, lambda: execute(["python3", "-m", "mypy", "-i", "mypy"]))
90 )
91 report("Warm cache", warm_cache)
92
93
94if __name__ == "__main__":

Callers 1

perf_checker.pyFile · 0.70

Calls 6

printFunction · 0.85
trialFunction · 0.85
CommandClass · 0.85
executeFunction · 0.70
reportFunction · 0.70
delete_folderFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…