1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/cli/bench
Aapo Alasuutari 2164f6b1eb
perf(ops): Monomorphic sync op calls (#15337)
Welcome to better optimised op calls! Currently opSync is called with parameters of every type and count. This most definitely makes the call megamorphic. Additionally, it seems that spread params leads to V8 not being able to optimise the calls quite as well (apparently Fast Calls cannot be used with spread params).

Monomorphising op calls should lead to some improved performance. Now that unwrapping of sync ops results is done on Rust side, this is pretty simple:

```
opSync("op_foo", param1, param2);
// -> turns to
ops.op_foo(param1, param2);
```

This means sync op calls are now just directly calling the native binding function. When V8 Fast API Calls are enabled, this will enable those to be called on the optimised path.

Monomorphising async ops likely requires using callbacks and is left as an exercise to the reader.
2022-08-11 15:56:56 +02:00
..
http perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
testdata Add LSP benchmark mimicking the one on quick-lint-js (#13365) 2022-01-18 06:58:50 -05:00
deno_common.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
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