deno/cli/bench
Divy Srivastava e136bd86b3
perf(napi): optimize primitive napi functions (#16163)
This optimization applies on `napi_get_undefined`, `napi_get_null` &
`napi_get_boolean`.

```
# main

benchmark               time (avg)             (min … max)       p75       p99      p995
---------------------------------------------------------- -----------------------------
warmup              482.55 ps/iter   (462.5 ps … 15.67 ns)    475 ps    525 ps  829.1 ps
napi_get_undefined   25.07 ns/iter   (24.03 ns … 36.87 ns)  25.37 ns  27.09 ns  34.85 ns
```

```
# This patch

benchmark               time (avg)             (min … max)       p75       p99      p995
---------------------------------------------------------- -----------------------------
warmup              484.78 ps/iter    (462.5 ps … 14.4 ns)    475 ps  554.1 ps  583.3 ps
napi_get_undefined   15.52 ns/iter   (15.35 ns … 22.14 ns)  15.41 ns  17.18 ns  20.02 ns
```
2022-10-07 16:24:01 +05:30
..
fs perf: fs optimizations - part 1 (#15873) 2022-09-22 14:39:25 +05:30
http perf(ext/fetch): consume body using ops (#16038) 2022-10-04 15:48:50 +02:00
napi perf(napi): optimize primitive napi functions (#16163) 2022-10-07 16:24:01 +05:30
testdata feat(ext/flash): split upgradeHttp into two APIs (#15557) 2022-08-24 17:40:57 +05:30
async_ops.js perf(runtime): short-circuit queue_async_op for Poll::Ready (#15773) 2022-09-06 23:08:37 +05:30
cache_api.js feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
console.js perf(ext/console): avoid wrapConsole when not inspecting (#15931) 2022-09-17 15:34:43 +05:30
deno_common.js feat(ops): Automatic fast ops creation (#15527) 2022-09-22 10:05:24 +05:30
encode_into.js perf(web): optimize encodeInto() (#15922) 2022-09-17 16:48:15 +05:30
http.rs chore(cli/bench): Add more HTTP benchmarks (#14995) 2022-07-01 12:59:01 +05:30
lsp.rs refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30
lsp_bench_standalone.rs feat(lsp): add experimental testing API (#13798) 2022-03-30 09:59:27 +11:00
main.rs fix(cli/bench): strace numeric format (#16055) 2022-09-27 21:33:17 +02:00
metrics.rs benchmarks: fix exec_time and latency benchmarks (#15155) 2022-07-11 20:58:32 +02:00
op_now.js perf: use fast api for op_now (#15643) 2022-08-28 12:21:49 +05:30
README.md refactor(bench): continuous benchmarking improvements (#14821) 2022-06-28 17:51:05 +05:30
secure_curves.js feat(ext/crypto): add x25519 and Ed25519 CFRG curves (#14119) 2022-09-27 17:43:42 +05:30
tcp.js perf(runtime): short-circuit queue_async_op for Poll::Ready (#15773) 2022-09-06 23:08:37 +05:30
tty.js perf: use fast ops for tty (#15976) 2022-09-23 09:35:45 +05:30
url_parse.js perf: optimize URL serialization (#15663) 2022-09-10 09:15:16 +05:30
write_file.js perf(runtime): flatten arguments for write_file ops (#15776) 2022-09-05 17:20:48 +05:30

benchmark filtering:

cargo bench --bench deno_bench -- bundle

benchmark plots:

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