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
e1864d6
commit 43729f3
Showing
5 changed files
with
36 additions
and
23 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
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
43729f3
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
64271186
ops/sec (±0.26%
)63783746
ops/sec (±0.2%
)0.99
noop#JavaScript
710632374
ops/sec (±0.13%
)594160170
ops/sec (±0.38%
)0.84
Plus number#napi-rs
20030758
ops/sec (±0.79%
)21887605
ops/sec (±0.22%
)1.09
Plus number#JavaScript
708442505
ops/sec (±0.43%
)593162503
ops/sec (±0.1%
)0.84
Create buffer#napi-rs
388306
ops/sec (±9.05%
)436943
ops/sec (±7.57%
)1.13
Create buffer#JavaScript
1769096
ops/sec (±6.47%
)1961809
ops/sec (±4.8%
)1.11
createArray#createArrayJson
39570
ops/sec (±0.1%
)44011
ops/sec (±0.1%
)1.11
createArray#create array for loop
7618
ops/sec (±0.1%
)8420
ops/sec (±0.1%
)1.11
createArray#create array with serde trait
7628
ops/sec (±0.14%
)8352
ops/sec (±0.1%
)1.09
getArrayFromJs#get array from json string
16757
ops/sec (±0.35%
)18064
ops/sec (±0.14%
)1.08
getArrayFromJs#get array from serde
10307
ops/sec (±0.1%
)10697
ops/sec (±0.13%
)1.04
getArrayFromJs#get array with for loop
12438
ops/sec (±0.11%
)12795
ops/sec (±0.25%
)1.03
Get Set property#Get Set from native#u32
416884
ops/sec (±6.29%
)410523
ops/sec (±4.86%
)0.98
Get Set property#Get Set from JavaScript#u32
358255
ops/sec (±6.3%
)340953
ops/sec (±4.78%
)0.95
Get Set property#Get Set from native#string
390000
ops/sec (±5.93%
)365210
ops/sec (±4.69%
)0.94
Get Set property#Get Set from JavaScript#string
341743
ops/sec (±6.23%
)322654
ops/sec (±5.19%
)0.94
Async task#spawn task
37873
ops/sec (±0.85%
)35698
ops/sec (±0.6%
)0.94
Async task#ThreadSafeFunction
1901
ops/sec (±8.35%
)1841
ops/sec (±9.43%
)0.97
Async task#Tokio future to Promise
31162
ops/sec (±3.98%
)31122
ops/sec (±3.17%
)1.00
Query#query * 100
1943
ops/sec (±7.2%
)1907
ops/sec (±6.64%
)0.98
Query#query * 1
31172
ops/sec (±0.83%
)32028
ops/sec (±0.44%
)1.03
This comment was automatically generated by workflow using github-action-benchmark.