Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(napi): array buffer drop notify never be called in cloned buffer
- Loading branch information
1 parent
5ab4b81
commit 9c3e7ca
Showing
1 changed file
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9c3e7ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
noop#napi-rs
66229366
ops/sec (±0.22%
)57577113
ops/sec (±0.61%
)0.87
noop#JavaScript
590583639
ops/sec (±0.77%
)635325208
ops/sec (±0.5%
)1.08
Plus number#napi-rs
20255010
ops/sec (±0.19%
)16432337
ops/sec (±0.95%
)0.81
Plus number#JavaScript
591810042
ops/sec (±0.13%
)615111906
ops/sec (±0.43%
)1.04
Create buffer#napi-rs
429063
ops/sec (±6.9%
)359275
ops/sec (±9.78%
)0.84
Create buffer#JavaScript
2005006
ops/sec (±5.22%
)1905294
ops/sec (±6.38%
)0.95
createArray#createArrayJson
45335
ops/sec (±0.12%
)33424
ops/sec (±0.33%
)0.74
createArray#create array for loop
7836
ops/sec (±0.1%
)6234
ops/sec (±0.29%
)0.80
createArray#create array with serde trait
7877
ops/sec (±0.1%
)6451
ops/sec (±0.6%
)0.82
getArrayFromJs#get array from json string
18699
ops/sec (±0.28%
)14901
ops/sec (±0.65%
)0.80
getArrayFromJs#get array from serde
9740
ops/sec (±0.04%
)8655
ops/sec (±0.52%
)0.89
getArrayFromJs#get array with for loop
12797
ops/sec (±0.05%
)10824
ops/sec (±0.69%
)0.85
Get Set property#Get Set from native#u32
395173
ops/sec (±5.25%
)389137
ops/sec (±6.13%
)0.98
Get Set property#Get Set from JavaScript#u32
331658
ops/sec (±5.19%
)317835
ops/sec (±6.11%
)0.96
Get Set property#Get Set from native#string
359029
ops/sec (±4.86%
)331477
ops/sec (±5.89%
)0.92
Get Set property#Get Set from JavaScript#string
321967
ops/sec (±5.13%
)305112
ops/sec (±6.05%
)0.95
Async task#spawn task
35603
ops/sec (±1.04%
)31717
ops/sec (±1.44%
)0.89
Async task#ThreadSafeFunction
2804
ops/sec (±3.41%
)1669
ops/sec (±13.21%
)0.60
Async task#Tokio future to Promise
32174
ops/sec (±0.54%
)28290
ops/sec (±2.03%
)0.88
Query#query * 100
2047
ops/sec (±2.13%
)1779
ops/sec (±3.75%
)0.87
Query#query * 1
31905
ops/sec (±1.11%
)28044
ops/sec (±2.05%
)0.88
This comment was automatically generated by workflow using github-action-benchmark.