Skip to content

refactor!(napi): add lifetime to Array#2599

Merged
Brooooooklyn merged 1 commit into
mainfrom
05-05-refactor_napi_add_lifetime_to_array
May 5, 2025
Merged

refactor!(napi): add lifetime to Array#2599
Brooooooklyn merged 1 commit into
mainfrom
05-05-refactor_napi_add_lifetime_to_array

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Details
Benchmark suite Current: d8028cd Previous: 4681ac9 Ratio
noop#napi-rs 83711181 ops/sec (±0.13%) 81927242 ops/sec (±4.17%) 0.98
noop#JavaScript 810474937 ops/sec (±0.78%) 814379430 ops/sec (±0.08%) 1.00
Plus number#napi-rs 26476886 ops/sec (±0.6%) 14330262 ops/sec (±1.67%) 0.54
Plus number#JavaScript 812416850 ops/sec (±0.1%) 813201081 ops/sec (±0.16%) 1.00
Create buffer#napi-rs 622613 ops/sec (±13.25%) 651883 ops/sec (±12.7%) 1.05
Create buffer#JavaScript 3254287 ops/sec (±2.91%) 3323399 ops/sec (±1.85%) 1.02
createArray#createArrayJson 54446 ops/sec (±0.53%) 54701 ops/sec (±0.31%) 1.00
createArray#create array for loop 9909 ops/sec (±0.42%) 9709 ops/sec (±1.08%) 0.98
createArray#create array with serde trait 9845 ops/sec (±0.49%) 9564 ops/sec (±1.54%) 0.97
getArrayFromJs#get array from json string 23198 ops/sec (±0.7%) 22961 ops/sec (±0.59%) 0.99
getArrayFromJs#get array from serde 13064 ops/sec (±0.23%) 13055 ops/sec (±0.44%) 1.00
getArrayFromJs#get array with for loop 16102 ops/sec (±0.45%) 14264 ops/sec (±1.52%) 0.89
Get Set property#Get Set from native#u32 556052 ops/sec (±13.35%) 546759 ops/sec (±8.7%) 0.98
Get Set property#Get Set from JavaScript#u32 518173 ops/sec (±2.82%) 498436 ops/sec (±9.77%) 0.96
Get Set property#Get Set from native#string 556656 ops/sec (±11.4%) 533647 ops/sec (±11.95%) 0.96
Get Set property#Get Set from JavaScript#string 505160 ops/sec (±2.11%) 510424 ops/sec (±2.22%) 1.01
Async task#spawn task 26221 ops/sec (±0.94%) 26416 ops/sec (±1.11%) 1.01
Async task#ThreadSafeFunction 9273 ops/sec (±0.32%) 9492 ops/sec (±0.66%) 1.02
Async task#Tokio future to Promise 30747 ops/sec (±0.68%) 30939 ops/sec (±0.35%) 1.01
Query#query * 100 3580 ops/sec (±1.23%) 3573 ops/sec (±1.09%) 1.00
Query#query * 1 27485 ops/sec (±0.96%) 27686 ops/sec (±0.57%) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

@Brooooooklyn Brooooooklyn force-pushed the 05-05-refactor_napi_add_lifetime_to_array branch from b78aaf0 to d8028cd Compare May 5, 2025 04:37
@Brooooooklyn Brooooooklyn merged commit 674d7c7 into main May 5, 2025
63 of 64 checks passed
@Brooooooklyn Brooooooklyn deleted the 05-05-refactor_napi_add_lifetime_to_array branch May 5, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant