mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
Tests: Take timing variance into account when flagging slow tests
This commit is contained in:
parent
d3e36fe426
commit
c9db3194df
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ async def main() -> None:
|
|||
for t in await asyncio.gather(*rerun_tasks):
|
||||
rerun_times.update({r.fullname: r.duration for r in t.results})
|
||||
stats = {r.fullname: [r.duration, rerun_times[r.fullname]] for r in maybe_slow}
|
||||
slow_tests = {k: v for k, v in stats.items() if mean(v) > threshold}
|
||||
slow_tests = {k: v for k, v in stats.items() if mean(v) - stdev(v) > threshold}
|
||||
print(f"Duration threshold (2x 95th %ile): {threshold:.2f} sec")
|
||||
print(f"Found {len(slow_tests)} slow tests ({num_suppressed} suppressed):")
|
||||
for k, v in slow_tests.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue