Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(napi): also apply electron external data fallback to lowlevel APIs
- Loading branch information
1 parent
fde2d64
commit aed2540
Showing
1 changed file
with
77 additions
and
20 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
aed2540
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
51179117
ops/sec (±1.16%
)64268786
ops/sec (±0.27%
)1.26
noop#JavaScript
639735563
ops/sec (±0.72%
)710252276
ops/sec (±0.1%
)1.11
Plus number#napi-rs
15113122
ops/sec (±1.6%
)19701768
ops/sec (±0.6%
)1.30
Plus number#JavaScript
635987575
ops/sec (±0.94%
)708450052
ops/sec (±0.14%
)1.11
Create buffer#napi-rs
311410
ops/sec (±10.23%
)365131
ops/sec (±10.52%
)1.17
Create buffer#JavaScript
1587329
ops/sec (±10.06%
)1769743
ops/sec (±6.98%
)1.11
createArray#createArrayJson
34756
ops/sec (±1.14%
)38725
ops/sec (±0.11%
)1.11
createArray#create array for loop
5732
ops/sec (±0.89%
)7410
ops/sec (±0.12%
)1.29
createArray#create array with serde trait
5708
ops/sec (±1.59%
)7427
ops/sec (±0.12%
)1.30
getArrayFromJs#get array from json string
14361
ops/sec (±1.24%
)16367
ops/sec (±0.27%
)1.14
getArrayFromJs#get array from serde
7793
ops/sec (±1.34%
)10023
ops/sec (±0.04%
)1.29
getArrayFromJs#get array with for loop
10054
ops/sec (±0.89%
)12256
ops/sec (±0.1%
)1.22
Get Set property#Get Set from native#u32
365483
ops/sec (±6.5%
)415294
ops/sec (±6.57%
)1.14
Get Set property#Get Set from JavaScript#u32
270588
ops/sec (±6.18%
)357080
ops/sec (±6.76%
)1.32
Get Set property#Get Set from native#string
316430
ops/sec (±6.18%
)368692
ops/sec (±6.5%
)1.17
Get Set property#Get Set from JavaScript#string
282779
ops/sec (±6.1%
)341740
ops/sec (±6.86%
)1.21
Async task#spawn task
27321
ops/sec (±3.19%
)37096
ops/sec (±1.46%
)1.36
Async task#ThreadSafeFunction
1905
ops/sec (±6.76%
)1140
ops/sec (±23.02%
)0.60
Async task#Tokio future to Promise
25958
ops/sec (±3.93%
)31816
ops/sec (±0.65%
)1.23
Query#query * 100
1586
ops/sec (±2.67%
)2058
ops/sec (±3.31%
)1.30
Query#query * 1
23135
ops/sec (±3.2%
)31192
ops/sec (±0.3%
)1.35
This comment was automatically generated by workflow using github-action-benchmark.