Skip to content

refactor!(napi): pass self to Task::finally instread of &mut self#2309

Merged
Brooooooklyn merged 1 commit into
mainfrom
10-14-refactor_napi_pass_self_to_task_finally_instread_of_mut_self
Oct 14, 2024
Merged

refactor!(napi): pass self to Task::finally instread of &mut self#2309
Brooooooklyn merged 1 commit into
mainfrom
10-14-refactor_napi_pass_self_to_task_finally_instread_of_mut_self

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member Author

Brooooooklyn commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

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: fb38808 Previous: 72afae3 Ratio
noop#napi-rs 86324473 ops/sec (±0.2%) 85245615 ops/sec (±0.89%) 0.99
noop#JavaScript 817595944 ops/sec (±0.08%) 818733588 ops/sec (±0.07%) 1.00
Plus number#napi-rs 22995977 ops/sec (±0.62%) 23153665 ops/sec (±0.32%) 1.01
Plus number#JavaScript 817725125 ops/sec (±0.08%) 817376295 ops/sec (±0.08%) 1.00
Create buffer#napi-rs 622264 ops/sec (±12.98%) 672787 ops/sec (±12.04%) 1.08
Create buffer#JavaScript 3807441 ops/sec (±2.69%) 3758146 ops/sec (±7.99%) 0.99
createArray#createArrayJson 54032 ops/sec (±0.42%) 52923 ops/sec (±0.84%) 0.98
createArray#create array for loop 9936 ops/sec (±0.42%) 9934 ops/sec (±0.46%) 1.00
createArray#create array with serde trait 9938 ops/sec (±0.35%) 9902 ops/sec (±0.28%) 1.00
getArrayFromJs#get array from json string 24608 ops/sec (±0.37%) 23856 ops/sec (±0.51%) 0.97
getArrayFromJs#get array from serde 13614 ops/sec (±0.45%) 13527 ops/sec (±0.51%) 0.99
getArrayFromJs#get array with for loop 16545 ops/sec (±1.45%) 16655 ops/sec (±0.19%) 1.01
Get Set property#Get Set from native#u32 574567 ops/sec (±12.36%) 580673 ops/sec (±12.48%) 1.01
Get Set property#Get Set from JavaScript#u32 550422 ops/sec (±2.42%) 557935 ops/sec (±2.07%) 1.01
Get Set property#Get Set from native#string 567475 ops/sec (±11.14%) 559712 ops/sec (±11.06%) 0.99
Get Set property#Get Set from JavaScript#string 517821 ops/sec (±1.9%) 518396 ops/sec (±1.84%) 1.00
Async task#spawn task 26444 ops/sec (±0.28%) 26348 ops/sec (±0.6%) 1.00
Async task#ThreadSafeFunction 9523 ops/sec (±0.76%) 9450 ops/sec (±0.41%) 0.99
Async task#Tokio future to Promise 32173 ops/sec (±1.07%) 32384 ops/sec (±0.84%) 1.01
Query#query * 100 3597 ops/sec (±0.81%) 3656 ops/sec (±0.55%) 1.02
Query#query * 1 27546 ops/sec (±0.7%) 27203 ops/sec (±0.79%) 0.99

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

@Brooooooklyn Brooooooklyn force-pushed the 10-14-refactor_napi_ref_unref_accept_mut_self_instead_of_self branch from 893e8dc to 2fc10e1 Compare October 14, 2024 03:02
@Brooooooklyn Brooooooklyn force-pushed the 10-14-refactor_napi_pass_self_to_task_finally_instread_of_mut_self branch from 153cc3e to 7d67666 Compare October 14, 2024 03:03
Base automatically changed from 10-14-refactor_napi_ref_unref_accept_mut_self_instead_of_self to main October 14, 2024 03:14
@Brooooooklyn Brooooooklyn force-pushed the 10-14-refactor_napi_pass_self_to_task_finally_instread_of_mut_self branch from 7d67666 to fb38808 Compare October 14, 2024 03:14
@Brooooooklyn Brooooooklyn merged commit dc4bfb8 into main Oct 14, 2024
Copy link
Copy Markdown
Member Author

Merge activity

  • Oct 13, 11:26 PM EDT: A user merged this pull request with Graphite.

@Brooooooklyn Brooooooklyn deleted the 10-14-refactor_napi_pass_self_to_task_finally_instread_of_mut_self branch October 14, 2024 03:26
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