| 70 | |
| 71 | |
| 72 | def print_results(results, discovery_time, thresh, status): |
| 73 | # only keep results >= threshold |
| 74 | results = dict(filter(lambda x: x[1] > thresh, results.items())) |
| 75 | if len(results) == 0: |
| 76 | return |
| 77 | print(f"\n\n{status}, printing completed times >{thresh}s in ascending order...\n") |
| 78 | timings = dict(sorted(results.items(), key=lambda item: item[1])) |
| 79 | |
| 80 | for r in timings: |
| 81 | if timings[r] >= thresh: |
| 82 | print(f"{r} ({timings[r]:.03}s)") |
| 83 | print(f"test discovery time: {discovery_time:.03}s") |
| 84 | print(f"total testing time: {sum(results.values()):.03}s") |
| 85 | print("Remember to check above times for any errors!") |
| 86 | |
| 87 | |
| 88 | def parse_args(): |