0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-11 14:47:26 -04:00
deno/cli/tests/testdata/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
..
collect
filter
allow_all.out
allow_all.ts
allow_none.out
allow_none.ts
check_local_by_default.out
check_local_by_default.ts
check_local_by_default2.out
check_local_by_default2.ts
clear_timeout.out
clear_timeout.ts
collect.out
exit_sanitizer.out
exit_sanitizer.ts
fail.out
fail.ts
file_protocol.out
file_protocol.ts
filter.out
finally_timeout.out
finally_timeout.ts
group_baseline.out chore: fix flaky integration::bench::multifile_summary test (#14771) 2022-06-02 03:03:28 +02:00
group_baseline.ts chore: fix flaky integration::bench::multifile_summary test (#14771) 2022-06-02 03:03:28 +02:00
ignore.out
ignore.ts
ignore_permissions.out
ignore_permissions.ts
interval.out
interval.ts
load_unload.out
load_unload.ts
meta.out
meta.ts
multifile_summary.out chore: fix flaky integration::bench::multifile_summary test (#14771) 2022-06-02 03:03:28 +02:00
no_check.out
no_check.ts
no_color.ts
no_prompt_by_default.out
no_prompt_by_default.ts
no_prompt_with_denied_perms.out
no_prompt_with_denied_perms.ts
only.out
only.ts
overloads.out
overloads.ts
pass.out
pass.ts
quiet.out
quiet.ts
recursive_permissions_pledge.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
requires_unstable.js
requires_unstable.out
unhandled_rejection.out
unhandled_rejection.ts
unresolved_promise.out
unresolved_promise.ts feat: "deno bench" subcommand (#13713) 2022-03-11 23:07:02 +01:00