1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/bench
Luca Casonato f3bde1d53b
feat(ext/flash): split upgradeHttp into two APIs (#15557)
This commit splits `Deno.upgradeHttp` into two different APIs, because
the same API is currently overloaded with two different functions. Flash
requests upgrade immediately, with no need to return a `Response`
object. Instead you have to manually write the response to the socket.
Hyper requests only upgrade once a `Response` object has been sent.

These two behaviours are now split into `Deno.upgradeHttp` and
`Deno.upgradeHttpRaw`. The latter is flash only. The former only
supports hyper requests at the moment, but can be updated to support
flash in the future.

Additionally this removes `void | Promise<void>` as valid return types
for the handler function. If one wants to use `Deno.upgradeHttpRaw`,
they will have to type cast the handler signature - the signature is
meant for the 99.99%, and should not be complicated for the 0.01% that
use `Deno.upgradeHttpRaw()`.
2022-08-24 17:40:57 +05:30
..
http feat: update Deno.serve function signature (#15563) 2022-08-24 00:08:56 +02:00
testdata feat(ext/flash): split upgradeHttp into two APIs (#15557) 2022-08-24 17:40:57 +05:30
deno_common.js feat(ops): V8 Fast Calls (#15291) 2022-08-21 17:37:53 +05:30
http.rs chore(cli/bench): Add more HTTP benchmarks (#14995) 2022-07-01 12:59:01 +05:30
lsp.rs refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30
lsp_bench_standalone.rs feat(lsp): add experimental testing API (#13798) 2022-03-30 09:59:27 +11:00
main.rs Reland "feat: add "unhandledrejection" event support" (#15211) 2022-07-20 20:28:19 +02:00
metrics.rs benchmarks: fix exec_time and latency benchmarks (#15155) 2022-07-11 20:58:32 +02:00
README.md refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30

benchmark filtering:

cargo bench --bench deno_bench -- bundle

benchmark plots:

new: https://denoland.grafana.net/d/vErC9VCnz/benchmarks?orgId=1 old: deno.land/benchmarks