1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 02:27:46 -05:00
denoland-deno/core/examples/http_bench_json_ops
Divy Srivastava 8088a7b786 perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525)
This commit adds a new core API `opAsync2` to call an async op with
atmost 2 arguments. Spread argument iterators has a pretty big perf hit
when calling ops.

| name | avg msg/sec/core |
| --- | --- |
| 1.32.1 | `127820.750000` |
| #18506 | `140079.000000` |
| #18506 + #18509 | `150104.250000` |
| #18506 + #18509 + this | `157340.000000` |
2023-03-31 11:43:20 -06:00
..
http_bench_json_ops.js perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525) 2023-03-31 11:43:20 -06:00
main.rs Optimize http_bench_json_ops example (#16505) 2023-01-18 15:09:54 +00:00