mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
perf(core): async op pseudo-codegen and performance work (#18887)
Performance: ``` async_ops.js: 760k -> 1030k (!) async_ops_deferred.js: 730k -> 770k Deno.serve bench: 118k -> 124k WS test w/ third_party/prebuilt/mac/load_test 100 localhost 8000 0 0: unchanged Startup time: approx 0.5ms slower (13.7 -> 14.2ms) ```
This commit is contained in:
parent
9c8ebce3dc
commit
bb1f5e4262
45 changed files with 737 additions and 237 deletions
|
@ -17,4 +17,6 @@ async function bench(fun) {
|
|||
}
|
||||
|
||||
const core = Deno[Deno.internal].core;
|
||||
bench(() => core.opAsync("op_void_async"));
|
||||
const ops = core.ops;
|
||||
const opVoidAsync = ops.op_void_async;
|
||||
bench(() => opVoidAsync());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue