1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/cli/bench
Bartek Iwańczuk ef20aedfa8
perf(ops): directly respond for eager ops (#18683)
This commit changes "eager ops" to directly return a response value
instead of calling "opresponse" callback in JavaScript. This saves
one boundary crossing and has a fantastic impact on the "async_ops.js"
benchmark:

```
v1.32.4
$ deno run cli/bench/async_ops.js
time 329 ms rate 3039513
time 322 ms rate 3105590
time 307 ms rate 3257328
time 301 ms rate 3322259
time 303 ms rate 3300330
time 306 ms rate 3267973
time 300 ms rate 3333333
time 301 ms rate 3322259
time 301 ms rate 3322259
time 301 ms rate 3322259
time 302 ms rate 3311258
time 301 ms rate 3322259
time 302 ms rate 3311258
time 302 ms rate 3311258
time 303 ms rate 3300330
```

```
this branch
$ ./target/release/deno run -A cli/bench/async_ops.js
time 257 ms rate 3891050
time 248 ms rate 4032258
time 251 ms rate 3984063
time 246 ms rate 4065040
time 238 ms rate 4201680
time 227 ms rate 4405286
time 228 ms rate 4385964
time 229 ms rate 4366812
time 228 ms rate 4385964
time 226 ms rate 4424778
time 226 ms rate 4424778
time 227 ms rate 4405286
time 228 ms rate 4385964
time 227 ms rate 4405286
time 228 ms rate 4385964
time 227 ms rate 4405286
time 229 ms rate 4366812
time 228 ms rate 4385964
```

Prerequisite for https://github.com/denoland/deno/pull/18652
2023-04-18 17:41:50 +02:00
..
fs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
http refactor: remove "ext/flash" (#18578) 2023-04-12 15:44:07 +02:00
napi chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
stdio chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
testdata refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
websocket chore(cli/bench): add ws echo bench (#18595) 2023-04-12 15:49:39 +02:00
async_ops.js perf(ops): directly respond for eager ops (#18683) 2023-04-18 17:41:50 +02:00
cache_api.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
command.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
console.js feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
deno_common.js refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
encode_into.js feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
getrandom.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
http.rs chore(cli/bench): add ws echo bench (#18595) 2023-04-12 15:49:39 +02:00
lsp.rs refactor(tests/lsp): consolidate more into test LspClient and reduce verbosity (#18100) 2023-03-09 15:09:03 -05:00
lsp_bench_standalone.rs refactor(tests/lsp): consolidate more into test LspClient and reduce verbosity (#18100) 2023-03-09 15:09:03 -05:00
main.rs chore(cli/bench): add ws echo bench (#18595) 2023-04-12 15:49:39 +02:00
op_now.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
README.md refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30
secure_curves.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
tcp.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
tty.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
url_parse.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
websocket.rs chore(cli/bench): add ws echo bench (#18595) 2023-04-12 15:49:39 +02:00
webstorage.js feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
write_file.js chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00

benchmark filtering:

cargo bench --bench deno_bench -- bundle

benchmark plots:

new: https://denoland.grafana.net/d/vErC9VCnz/benchmarks?orgId=1 old: deno.land/benchmarks