mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
430b63c2c4
This commit improves async op sanitizer speed by only delaying metrics collection if there are pending ops. This results in a speedup of around 30% for small CPU bound unit tests. It performs this check and possible delay on every collection now, fixing an issue with parent test leaks into steps.
10 lines
No EOL
300 B
Text
10 lines
No EOL
300 B
Text
Check [WILDCARD]/cli/tests/testdata/test/ops_sanitizer_step_leak.ts
|
|
running 1 test from ./cli/tests/testdata/test/ops_sanitizer_step_leak.ts
|
|
timeout ...
|
|
step ... ok [WILDCARD]
|
|
------- output -------
|
|
done
|
|
----- output end -----
|
|
timeout ... ok [WILDCARD]
|
|
|
|
ok | 1 passed (1 step) | 0 failed [WILDCARD] |