()
| 65 | |
| 66 | |
| 67 | def 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 | |
| 94 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…