1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/ext
Matt Mastracci 5193834cf2
refactor(cli): clean up test runner channels (#22422)
Gets us closer to solving #20707.

Rewrites the `TestEventSender`:

- Allow for explicit creation of multiple streams. This will allow for
one-std{out,err}-per-worker
- All test events are received along with a worker ID, allowing for
eventual, proper parallel threading of test events.
 
In theory this should open up proper interleaving of test output,
however that is left for a future PR.

I had some plans for a better performing synchronization primitive, but
the inter-thread communication is tricky. This does, however, speed up
the processing of large numbers of tests 15-25% (possibly even more on
100,000+).

Before

```
ok | 1000 passed | 0 failed (32ms)
ok | 10000 passed | 0 failed (276ms)
```

After

```
ok | 1000 passed | 0 failed (25ms)
ok | 10000 passed | 0 failed (230ms)
```
2024-02-23 11:11:15 -07:00
..
broadcast_channel 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
cache 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
canvas 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
console 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
cron 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
crypto 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
fetch 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
ffi 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
fs 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
http 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
io refactor(cli): clean up test runner channels (#22422) 2024-02-23 11:11:15 -07:00
kv 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
napi 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
net 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
node fix(ext/node): set correct process.argv0 (#22555) 2024-02-23 17:30:29 +01:00
tls 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
url 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
web 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
webgpu 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
webidl 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
websocket 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00
webstorage 1.41.0 (#22524) 2024-02-22 02:44:05 +01:00