-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(napi): remove more thread_local usage
- Loading branch information
1 parent
5bd6c78
commit e88fbcc
Showing
1 changed file
with
59 additions
and
15 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
e88fbcc
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
63320819
ops/sec (±0.19%
)45587425
ops/sec (±0.57%
)0.72
noop#JavaScript
593840472
ops/sec (±0.12%
)709520903
ops/sec (±0.16%
)1.19
Plus number#napi-rs
21656197
ops/sec (±0.85%
)19525504
ops/sec (±0.7%
)0.90
Plus number#JavaScript
591473382
ops/sec (±0.24%
)707909446
ops/sec (±0.12%
)1.20
Create buffer#napi-rs
397953
ops/sec (±7.63%
)377660
ops/sec (±9.54%
)0.95
Create buffer#JavaScript
1702393
ops/sec (±4.16%
)1921690
ops/sec (±5.75%
)1.13
createArray#createArrayJson
44287
ops/sec (±0.14%
)39303
ops/sec (±0.29%
)0.89
createArray#create array for loop
8251
ops/sec (±0.12%
)7528
ops/sec (±0.13%
)0.91
createArray#create array with serde trait
8407
ops/sec (±0.11%
)7501
ops/sec (±0.13%
)0.89
getArrayFromJs#get array from json string
18186
ops/sec (±0.35%
)16800
ops/sec (±0.14%
)0.92
getArrayFromJs#get array from serde
10277
ops/sec (±1.6%
)10389
ops/sec (±0.03%
)1.01
getArrayFromJs#get array with for loop
12980
ops/sec (±0.53%
)12548
ops/sec (±0.03%
)0.97
Get Set property#Get Set from native#u32
386385
ops/sec (±5.74%
)415329
ops/sec (±6.94%
)1.07
Get Set property#Get Set from JavaScript#u32
312290
ops/sec (±6.32%
)358980
ops/sec (±6.93%
)1.15
Get Set property#Get Set from native#string
349849
ops/sec (±5.4%
)372414
ops/sec (±6.48%
)1.06
Get Set property#Get Set from JavaScript#string
304350
ops/sec (±5.63%
)329996
ops/sec (±7.16%
)1.08
Async task#spawn task
34731
ops/sec (±0.7%
)36776
ops/sec (±0.82%
)1.06
Async task#ThreadSafeFunction
1427
ops/sec (±9.78%
)1207
ops/sec (±21.89%
)0.85
Async task#Tokio future to Promise
29828
ops/sec (±2.4%
)30331
ops/sec (±4.76%
)1.02
Query#query * 100
1881
ops/sec (±4.75%
)1890
ops/sec (±8.31%
)1.00
Query#query * 1
30868
ops/sec (±0.53%
)31121
ops/sec (±0.69%
)1.01
This comment was automatically generated by workflow using github-action-benchmark.