Matt Mastracci
|
f60720090c
|
chore: move test_ffi and test_nap to tests/ [WIP] (#22394)
Moving some additional NAPI and. FFI tests out of the tree root.
|
2024-02-12 13:46:50 -07:00 |
|
David Sherret
|
7e72f3af61
|
chore: update copyright to 2024 (#21753)
|
2024-01-01 19:58:21 +00:00 |
|
Yiyu Lin
|
a00e432297
|
chore: add copyright_checker tool and add the missing copyright (#17285)
|
2023-01-13 16:51:32 +09:00 |
|
Bartek Iwańczuk
|
d0a53c3ce5
|
refactor(napi): Cleanup tests (#17347)
|
2023-01-11 15:47:26 +01:00 |
|
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 |
|