1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-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 feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
allow_all.ts
allow_none.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
allow_none.ts
check_local_by_default.out feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
check_local_by_default.ts feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
check_local_by_default2.out feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
check_local_by_default2.ts feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
clear_timeout.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
clear_timeout.ts
collect.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
exit_sanitizer.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
exit_sanitizer.ts
fail.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
fail.ts
file_protocol.out fix(test/bench): accept file protocol module specifier CLI args (#14429) 2022-05-02 15:43:03 -04:00
file_protocol.ts fix(test/bench): accept file protocol module specifier CLI args (#14429) 2022-05-02 15:43:03 -04:00
filter.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
finally_timeout.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
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 feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
ignore.ts
ignore_permissions.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
ignore_permissions.ts
interval.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
interval.ts
load_unload.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
load_unload.ts
meta.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
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 feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
no_check.ts
no_color.ts
no_prompt_by_default.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
no_prompt_by_default.ts
no_prompt_with_denied_perms.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
no_prompt_with_denied_perms.ts
only.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
only.ts
overloads.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
overloads.ts
pass.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
pass.ts
quiet.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
quiet.ts
recursive_permissions_pledge.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
requires_unstable.js fix(bench): require --unstable flag in JavaScript (#14091) 2022-03-23 16:33:42 +01:00
requires_unstable.out fix(bench): require --unstable flag in JavaScript (#14091) 2022-03-23 16:33:42 +01:00
unhandled_rejection.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
unhandled_rejection.ts
unresolved_promise.out feat(bench): update API, new console reporter (#14305) 2022-04-20 21:06:39 +02:00
unresolved_promise.ts