Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(napi): add back custom gc for Send Buffer
- Loading branch information
1 parent
328b84e
commit 12d1a84
Showing
3 changed files
with
163 additions
and
0 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
12d1a84
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
67510052
ops/sec (±0.31%
)50332687
ops/sec (±0.89%
)0.75
noop#JavaScript
591626211
ops/sec (±0.11%
)633393633
ops/sec (±0.53%
)1.07
Plus number#napi-rs
20245247
ops/sec (±0.26%
)14825624
ops/sec (±0.81%
)0.73
Plus number#JavaScript
589476834
ops/sec (±0.16%
)625180971
ops/sec (±0.52%
)1.06
Create buffer#napi-rs
441166
ops/sec (±6.67%
)333034
ops/sec (±9.61%
)0.75
Create buffer#JavaScript
2051835
ops/sec (±4.62%
)1618124
ops/sec (±7%
)0.79
createArray#createArrayJson
44343
ops/sec (±0.12%
)33273
ops/sec (±0.77%
)0.75
createArray#create array for loop
8125
ops/sec (±0.1%
)5859
ops/sec (±0.47%
)0.72
createArray#create array with serde trait
8251
ops/sec (±0.09%
)5864
ops/sec (±0.48%
)0.71
getArrayFromJs#get array from json string
17872
ops/sec (±0.27%
)14123
ops/sec (±0.43%
)0.79
getArrayFromJs#get array from serde
10611
ops/sec (±0.07%
)7773
ops/sec (±0.64%
)0.73
getArrayFromJs#get array with for loop
12894
ops/sec (±0.06%
)9819
ops/sec (±0.61%
)0.76
Get Set property#Get Set from native#u32
400477
ops/sec (±4.5%
)352812
ops/sec (±6.76%
)0.88
Get Set property#Get Set from JavaScript#u32
339875
ops/sec (±4.54%
)294761
ops/sec (±6.87%
)0.87
Get Set property#Get Set from native#string
372849
ops/sec (±4.33%
)316435
ops/sec (±6.48%
)0.85
Get Set property#Get Set from JavaScript#string
323060
ops/sec (±4.57%
)275981
ops/sec (±6.44%
)0.85
Async task#spawn task
35677
ops/sec (±0.51%
)29223
ops/sec (±2.28%
)0.82
Async task#ThreadSafeFunction
1944
ops/sec (±1.81%
)2307
ops/sec (±5.3%
)1.19
Async task#Tokio future to Promise
30933
ops/sec (±2.87%
)28721
ops/sec (±3.34%
)0.93
Query#query * 100
1956
ops/sec (±4.92%
)1482
ops/sec (±7.58%
)0.76
Query#query * 1
30534
ops/sec (±6.86%
)25470
ops/sec (±3.38%
)0.83
This comment was automatically generated by workflow using github-action-benchmark.