-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
938f4df
commit adcb86a
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
adcb86a
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
58559791
ops/sec (±0.47%
)54757912
ops/sec (±1.01%
)0.94
noop#JavaScript
712470283
ops/sec (±0.19%
)663656359
ops/sec (±0.94%
)0.93
Plus number#napi-rs
18382220
ops/sec (±0.15%
)17309798
ops/sec (±1.21%
)0.94
Plus number#JavaScript
711132910
ops/sec (±0.12%
)672162126
ops/sec (±1.2%
)0.95
Create buffer#napi-rs
378740
ops/sec (±10.29%
)389726
ops/sec (±9.55%
)1.03
Create buffer#JavaScript
1881833
ops/sec (±8.37%
)1648526
ops/sec (±8.64%
)0.88
createArray#createArrayJson
38705
ops/sec (±0.14%
)36896
ops/sec (±1.14%
)0.95
createArray#create array for loop
7137
ops/sec (±0.16%
)6820
ops/sec (±1.01%
)0.96
createArray#create array with serde trait
7161
ops/sec (±0.31%
)6810
ops/sec (±1.31%
)0.95
getArrayFromJs#get array from json string
16710
ops/sec (±0.14%
)16288
ops/sec (±1.01%
)0.97
getArrayFromJs#get array from serde
9751
ops/sec (±0.1%
)9221
ops/sec (±1.13%
)0.95
getArrayFromJs#get array with for loop
12196
ops/sec (±0.05%
)11431
ops/sec (±1.13%
)0.94
Get Set property#Get Set from native#u32
442528
ops/sec (±8.63%
)416068
ops/sec (±8.8%
)0.94
Get Set property#Get Set from JavaScript#u32
402113
ops/sec (±9.56%
)367107
ops/sec (±9.29%
)0.91
Get Set property#Get Set from native#string
418464
ops/sec (±16.53%
)378515
ops/sec (±15.91%
)0.90
Get Set property#Get Set from JavaScript#string
399661
ops/sec (±3.33%
)362662
ops/sec (±3.35%
)0.91
Async task#spawn task
35881
ops/sec (±1.05%
)32985
ops/sec (±1.11%
)0.92
Async task#ThreadSafeFunction
9752
ops/sec (±5.32%
)6843
ops/sec (±18%
)0.70
Async task#Tokio future to Promise
35209
ops/sec (±1.56%
)29159
ops/sec (±1.02%
)0.83
Query#query * 100
2289
ops/sec (±0.75%
)1988
ops/sec (±1.8%
)0.87
Query#query * 1
30913
ops/sec (±1.6%
)27914
ops/sec (±1.79%
)0.90
This comment was automatically generated by workflow using github-action-benchmark.