summaryrefslogtreecommitdiff
path: root/bench_util/README.md
AgeCommit message (Collapse)Author
2024-01-30chore(bench_util): fix syntax error in README.md (#21492)zhanghengxin
2023-10-07refactor: migrate more ops to op2 macro (#20808)Bartek Iwańczuk
Getting closer...
2023-07-31refactor: update core extension api usage (#19952)Nayeem Rahman
2022-08-11perf(ops): Monomorphic sync op calls (#15337)Aapo Alasuutari
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.
2021-12-29chore(bench_util): update README example (#13226)Aaron O'Mullan
2021-05-20chore: add README to bench_util/ (#10712)Bartek Iwańczuk