Function
trial
(num_trials: int, command: Command)
Source from the content-addressed store, hash-verified
| 46 | |
| 47 | |
| 48 | def trial(num_trials: int, command: Command) -> list[float]: |
| 49 | trials = [] |
| 50 | for i in range(num_trials): |
| 51 | command.setup() |
| 52 | start = time.time() |
| 53 | command.command() |
| 54 | delta = time.time() - start |
| 55 | trials.append(delta) |
| 56 | return trials |
| 57 | |
| 58 | |
| 59 | def report(name: str, times: list[float]) -> None: |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…