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 203c5b5
Showing
3 changed files
with
164 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
203c5b5
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
51491927
ops/sec (±1.04%
)50332687
ops/sec (±0.89%
)0.98
noop#JavaScript
639897506
ops/sec (±1.32%
)633393633
ops/sec (±0.53%
)0.99
Plus number#napi-rs
15184371
ops/sec (±1.17%
)14825624
ops/sec (±0.81%
)0.98
Plus number#JavaScript
651924773
ops/sec (±0.88%
)625180971
ops/sec (±0.52%
)0.96
Create buffer#napi-rs
359890
ops/sec (±9.9%
)333034
ops/sec (±9.61%
)0.93
Create buffer#JavaScript
1676562
ops/sec (±4.79%
)1618124
ops/sec (±7%
)0.97
createArray#createArrayJson
35257
ops/sec (±1.21%
)33273
ops/sec (±0.77%
)0.94
createArray#create array for loop
5067
ops/sec (±0.9%
)5859
ops/sec (±0.47%
)1.16
createArray#create array with serde trait
6471
ops/sec (±1.21%
)5864
ops/sec (±0.48%
)0.91
getArrayFromJs#get array from json string
15117
ops/sec (±1.27%
)14123
ops/sec (±0.43%
)0.93
getArrayFromJs#get array from serde
8636
ops/sec (±1.09%
)7773
ops/sec (±0.64%
)0.90
getArrayFromJs#get array with for loop
10633
ops/sec (±1.45%
)9819
ops/sec (±0.61%
)0.92
Get Set property#Get Set from native#u32
345751
ops/sec (±8.55%
)352812
ops/sec (±6.76%
)1.02
Get Set property#Get Set from JavaScript#u32
300489
ops/sec (±6.64%
)294761
ops/sec (±6.87%
)0.98
Get Set property#Get Set from native#string
328542
ops/sec (±6.26%
)316435
ops/sec (±6.48%
)0.96
Get Set property#Get Set from JavaScript#string
290191
ops/sec (±6.36%
)275981
ops/sec (±6.44%
)0.95
Async task#spawn task
23016
ops/sec (±4.76%
)29223
ops/sec (±2.28%
)1.27
Async task#ThreadSafeFunction
1502
ops/sec (±3.22%
)2307
ops/sec (±5.3%
)1.54
Async task#Tokio future to Promise
23062
ops/sec (±4.25%
)28721
ops/sec (±3.34%
)1.25
Query#query * 100
1411
ops/sec (±7.44%
)1482
ops/sec (±7.58%
)1.05
Query#query * 1
19473
ops/sec (±5.46%
)25470
ops/sec (±3.38%
)1.31
This comment was automatically generated by workflow using github-action-benchmark.