Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f90d63c
commit 18dc3df
Showing
3 changed files
with
3 additions
and
7 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
18dc3df
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
41061863
ops/sec (±1.33%
)55554627
ops/sec (±0.2%
)1.35
noop#JavaScript
763883709
ops/sec (±0.88%
)713679301
ops/sec (±0.14%
)0.93
Plus number#napi-rs
15958420
ops/sec (±1.5%
)18971890
ops/sec (±0.12%
)1.19
Plus number#JavaScript
751163428
ops/sec (±0.78%
)711238235
ops/sec (±0.12%
)0.95
Create buffer#napi-rs
327832
ops/sec (±10.12%
)399925
ops/sec (±9.13%
)1.22
Create buffer#JavaScript
1602738
ops/sec (±6.57%
)1624790
ops/sec (±5.85%
)1.01
createArray#createArrayJson
34280
ops/sec (±1.07%
)37083
ops/sec (±0.12%
)1.08
createArray#create array for loop
6351
ops/sec (±0.8%
)7650
ops/sec (±0.11%
)1.20
createArray#create array with serde trait
6101
ops/sec (±1.02%
)7633
ops/sec (±0.1%
)1.25
getArrayFromJs#get array from json string
14502
ops/sec (±1.08%
)16819
ops/sec (±0.13%
)1.16
getArrayFromJs#get array from serde
8701
ops/sec (±0.78%
)10325
ops/sec (±0.13%
)1.19
getArrayFromJs#get array with for loop
9855
ops/sec (±0.92%
)12291
ops/sec (±0.06%
)1.25
Get Set property#Get Set from native#u32
352362
ops/sec (±6%
)419381
ops/sec (±5.36%
)1.19
Get Set property#Get Set from JavaScript#u32
313873
ops/sec (±5.13%
)353885
ops/sec (±5.34%
)1.13
Get Set property#Get Set from native#string
319612
ops/sec (±5.43%
)375850
ops/sec (±5.11%
)1.18
Get Set property#Get Set from JavaScript#string
292667
ops/sec (±5.34%
)338322
ops/sec (±5.13%
)1.16
Async task#spawn task
30821
ops/sec (±2.89%
)38092
ops/sec (±1.4%
)1.24
Async task#ThreadSafeFunction
2086
ops/sec (±3.52%
)1680
ops/sec (±8.75%
)0.81
Async task#Tokio future to Promise
21259
ops/sec (±2.98%
)28358
ops/sec (±1.22%
)1.33
Query#query * 100
1559
ops/sec (±1.59%
)1921
ops/sec (±1.41%
)1.23
Query#query * 1
19592
ops/sec (±2.61%
)28177
ops/sec (±1.19%
)1.44
This comment was automatically generated by workflow using github-action-benchmark.