Skip to content

chore(napi): remove thread_local! in REFERENCE_MAP - #2470

Merged
Brooooooklyn merged 1 commit into
mainfrom
02-16-chore_napi_remove_thread_local_in_reference_map
Feb 16, 2025
Merged

chore(napi): remove thread_local! in REFERENCE_MAP#2470
Brooooooklyn merged 1 commit into
mainfrom
02-16-chore_napi_remove_thread_local_in_reference_map

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

No description provided.

Brooooooklyn commented Feb 16, 2025

Copy link
Copy Markdown
Member Author

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

@Brooooooklyn
Brooooooklyn changed the base branch from main to graphite-base/2470 February 16, 2025 07:39
@Brooooooklyn
Brooooooklyn force-pushed the 02-16-chore_napi_remove_thread_local_in_reference_map branch from e6934ca to c446d86 Compare February 16, 2025 07:39
@Brooooooklyn
Brooooooklyn changed the base branch from graphite-base/2470 to 02-16-chore_napi_merge_thread_cleanup February 16, 2025 07:39
@Brooooooklyn
Brooooooklyn changed the base branch from 02-16-chore_napi_merge_thread_cleanup to graphite-base/2470 February 16, 2025 07:40
@Brooooooklyn
Brooooooklyn force-pushed the 02-16-chore_napi_remove_thread_local_in_reference_map branch from c446d86 to 9a18ce3 Compare February 16, 2025 07:41

@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: 43acf51 Previous: 0ce8fab Ratio
noop#napi-rs 86475801 ops/sec (±0.14%) 86442797 ops/sec (±0.2%) 1.00
noop#JavaScript 818440555 ops/sec (±0.08%) 818660509 ops/sec (±0.06%) 1.00
Plus number#napi-rs 26507432 ops/sec (±0.71%) 26581735 ops/sec (±0.33%) 1.00
Plus number#JavaScript 817706097 ops/sec (±0.08%) 817376531 ops/sec (±0.11%) 1.00
Create buffer#napi-rs 657198 ops/sec (±12.55%) 657570 ops/sec (±12.68%) 1.00
Create buffer#JavaScript 3689681 ops/sec (±2.86%) 3586752 ops/sec (±2.57%) 0.97
createArray#createArrayJson 56525 ops/sec (±0.49%) 55450 ops/sec (±0.44%) 0.98
createArray#create array for loop 10450 ops/sec (±0.62%) 10164 ops/sec (±0.34%) 0.97
createArray#create array with serde trait 10508 ops/sec (±0.45%) 10211 ops/sec (±0.59%) 0.97
getArrayFromJs#get array from json string 24354 ops/sec (±0.57%) 23982 ops/sec (±0.39%) 0.98
getArrayFromJs#get array from serde 13365 ops/sec (±0.65%) 12512 ops/sec (±0.29%) 0.94
getArrayFromJs#get array with for loop 16207 ops/sec (±0.39%) 16212 ops/sec (±0.06%) 1.00
Get Set property#Get Set from native#u32 579521 ops/sec (±11.78%) 601102 ops/sec (±7.8%) 1.04
Get Set property#Get Set from JavaScript#u32 547587 ops/sec (±2.3%) 543089 ops/sec (±2.44%) 0.99
Get Set property#Get Set from native#string 575497 ops/sec (±10.76%) 577267 ops/sec (±10.93%) 1.00
Get Set property#Get Set from JavaScript#string 518724 ops/sec (±1.93%) 515169 ops/sec (±1.87%) 0.99
Async task#spawn task 26209 ops/sec (±0.7%) 26082 ops/sec (±0.31%) 1.00
Async task#ThreadSafeFunction 9387 ops/sec (±0.72%) 9490 ops/sec (±0.77%) 1.01
Async task#Tokio future to Promise 32521 ops/sec (±0.78%) 32799 ops/sec (±1.08%) 1.01
Query#query * 100 3646 ops/sec (±0.95%) 3685 ops/sec (±0.43%) 1.01
Query#query * 1 28081 ops/sec (±0.73%) 27484 ops/sec (±0.84%) 0.98

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

Brooooooklyn commented Feb 16, 2025

Copy link
Copy Markdown
Member Author

Merge activity

  • Feb 16, 3:55 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 16, 3:57 AM EST: Graphite rebased this pull request as part of a merge.
  • Feb 16, 4:04 AM EST: Graphite couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Memory leak detect job', 'ubuntu-latest - node@22 - toolchain@ stable', 'Test - powerpc64le-unknown-linux-gnu - 20', 'Test - powerpc64le-unknown-linux-gnu - 22').
  • Feb 16, 5:08 AM EST: A user merged this pull request with Graphite.

@Brooooooklyn
Brooooooklyn changed the base branch from graphite-base/2470 to main February 16, 2025 08:55
@Brooooooklyn
Brooooooklyn force-pushed the 02-16-chore_napi_remove_thread_local_in_reference_map branch from 9a18ce3 to 43acf51 Compare February 16, 2025 08:56
@Brooooooklyn
Brooooooklyn merged commit 384dcac into main Feb 16, 2025
@Brooooooklyn
Brooooooklyn deleted the 02-16-chore_napi_remove_thread_local_in_reference_map branch February 16, 2025 10:08
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