1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/cli/tests/integration
Matt Mastracci 23ff0e722e
feat(ext/web): resourceForReadableStream (#20180)
Extracted from fast streams work.

This is a resource wrapper for `ReadableStream`, allowing us to treat
all `ReadableStream` instances as resources, and remove special paths in
both `fetch` and `serve`.

Performance with a ReadableStream response yields ~18% improvement:

```
  return new Response(new ReadableStream({
    start(controller) {
      controller.enqueue(new Uint8Array([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]));
      controller.close();
    }
  })
```

This patch:

```
12:36 $ third_party/prebuilt/mac/wrk http://localhost:8080
Running 10s test @ http://localhost:8080
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    99.96us  100.03us   6.65ms   98.84%
    Req/Sec    47.73k     2.43k   51.02k    89.11%
  959308 requests in 10.10s, 117.10MB read
Requests/sec:  94978.71
Transfer/sec:     11.59MB
```

main:

```
Running 10s test @ http://localhost:8080
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   163.03us  685.51us  19.73ms   99.27%
    Req/Sec    39.50k     3.98k   66.11k    95.52%
  789582 requests in 10.10s, 82.83MB read
Requests/sec:  78182.65
Transfer/sec:      8.20MB
```
2023-08-17 07:52:37 -06:00
..
bench_tests.rs feat(bench): add BenchContext::start() and BenchContext::end() (#18734) 2023-07-31 12:02:59 +02:00
bundle_tests.rs feat(cli): --ext parameter for run, compile, and bundle (#17172) 2023-03-22 10:15:53 -04:00
cache_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
cert_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
check_tests.rs fix: do not include jsx without @ts-check in tsc roots (#19964) 2023-07-27 14:09:02 -04:00
compile_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
coverage_tests.rs fix(lsp): handle import mapped node: specifier (#19956) 2023-07-26 22:52:31 +00:00
doc_tests.rs fix(info/doc): add missing --no-lock and --lock flags (#18166) 2023-03-13 17:04:00 -04:00
eval_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
flags_tests.rs fix(cli): Fix the bug where the command description is not displayed. (#19604) 2023-06-28 02:57:20 +02:00
fmt_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
info_tests.rs fix: deno info should respect import map (#19781) 2023-07-25 18:23:43 +02:00
init_tests.rs fix(lsp): handle import mapped node: specifier (#19956) 2023-07-26 22:52:31 +00:00
inspector_tests.rs fix(runtime): use host header for inspector websocket URL (#20171) 2023-08-15 22:30:33 +00:00
install_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
js_unit_tests.rs feat(ext/web): resourceForReadableStream (#20180) 2023-08-17 07:52:37 -06:00
lint_tests.rs feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
lsp_tests.rs feat(unstable): rename deno_modules to vendor (#20065) 2023-08-06 21:56:56 -04:00
mod.rs refactor: move shared library tests to their own file (#18479) 2023-03-28 13:40:43 -04:00
node_compat_tests.rs feat(node): add polyfill for node:test module (#20002) 2023-08-02 01:17:38 +02:00
node_unit_tests.rs fix(node): repl._builtinLibs (#20046) 2023-08-04 14:30:48 +02:00
npm_tests.rs refactor(cli): move snapshot_from_lockfile function to deno_npm (#20024) 2023-08-08 10:07:29 -07:00
repl_tests.rs chore(repl): mark some tests as flaky (#19475) 2023-06-13 09:36:21 -04:00
run_tests.rs chore: upgrade fastwebsockets to 0.4.4 (#19089) 2023-08-10 09:59:06 +05:30
shared_library_tests.rs feat(node/os): implement getPriority, setPriority & userInfo (#19370) 2023-07-31 22:29:09 +02:00
task_tests.rs fix(npm): run pre and post tasks if present (#19178) 2023-05-18 15:51:17 -04:00
test_tests.rs fix(test): make test runner work when global setTimeout is replaced (#20052) 2023-08-04 22:29:04 +09:00
upgrade_tests.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
vendor_tests.rs feat(vendor): support for npm specifiers (#19186) 2023-05-19 22:39:27 +00:00
watcher_tests.rs fix: move Deno.serve to stable namespace (#19718) 2023-07-04 23:04:26 +00:00
worker_tests.rs fix: regression in workers using dynamic imports (#20006) 2023-08-02 01:19:44 +00:00