mirror of
https://github.com/denoland/deno
synced 2024-10-12 19:12:32 +00: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
300 B
Plaintext
10 lines
300 B
Plaintext
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] |