-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(napi-derive): async task optional output type
- Loading branch information
1 parent
3804bed
commit 011db7a
Showing
6 changed files
with
32 additions
and
2 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
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
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
Binary file not shown.
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
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
011db7a
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
48969242
ops/sec (±0.89%
)54757912
ops/sec (±1.01%
)1.12
noop#JavaScript
683846652
ops/sec (±0.94%
)663656359
ops/sec (±0.94%
)0.97
Plus number#napi-rs
14344759
ops/sec (±0.89%
)17309798
ops/sec (±1.21%
)1.21
Plus number#JavaScript
690973553
ops/sec (±0.89%
)672162126
ops/sec (±1.2%
)0.97
Create buffer#napi-rs
295286
ops/sec (±11.38%
)389726
ops/sec (±9.55%
)1.32
Create buffer#JavaScript
1496198
ops/sec (±7.71%
)1648526
ops/sec (±8.64%
)1.10
createArray#createArrayJson
32139
ops/sec (±0.66%
)36896
ops/sec (±1.14%
)1.15
createArray#create array for loop
5521
ops/sec (±0.97%
)6820
ops/sec (±1.01%
)1.24
createArray#create array with serde trait
5478
ops/sec (±0.92%
)6810
ops/sec (±1.31%
)1.24
getArrayFromJs#get array from json string
13318
ops/sec (±1.09%
)16288
ops/sec (±1.01%
)1.22
getArrayFromJs#get array from serde
7667
ops/sec (±0.8%
)9221
ops/sec (±1.13%
)1.20
getArrayFromJs#get array with for loop
9595
ops/sec (±1.14%
)11431
ops/sec (±1.13%
)1.19
Get Set property#Get Set from native#u32
376190
ops/sec (±10.06%
)416068
ops/sec (±8.8%
)1.11
Get Set property#Get Set from JavaScript#u32
312229
ops/sec (±10.59%
)367107
ops/sec (±9.29%
)1.18
Get Set property#Get Set from native#string
360040
ops/sec (±3.76%
)378515
ops/sec (±15.91%
)1.05
Get Set property#Get Set from JavaScript#string
282383
ops/sec (±18.13%
)362662
ops/sec (±3.35%
)1.28
Async task#spawn task
26261
ops/sec (±2.55%
)32985
ops/sec (±1.11%
)1.26
Async task#ThreadSafeFunction
4522
ops/sec (±4.37%
)6843
ops/sec (±18%
)1.51
Async task#Tokio future to Promise
24160
ops/sec (±2.19%
)29159
ops/sec (±1.02%
)1.21
Query#query * 100
1738
ops/sec (±2.21%
)1988
ops/sec (±1.8%
)1.14
Query#query * 1
20607
ops/sec (±1.83%
)27914
ops/sec (±1.79%
)1.35
This comment was automatically generated by workflow using github-action-benchmark.