Skip to content

feat(napi): impl io::Read for Uint8Array#2336

Merged
Brooooooklyn merged 1 commit into
mainfrom
10-30-feat_napi_impl_io_read_for_uint8array
Oct 30, 2024
Merged

feat(napi): impl io::Read for Uint8Array#2336
Brooooooklyn merged 1 commit into
mainfrom
10-30-feat_napi_impl_io_read_for_uint8array

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.

Join @Brooooooklyn and the rest of your teammates on Graphite Graphite

@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: 6011771 Previous: ac30f59 Ratio
noop#napi-rs 86907616 ops/sec (±0.22%) 86947985 ops/sec (±0.12%) 1.00
noop#JavaScript 822698375 ops/sec (±0.16%) 822606548 ops/sec (±0.08%) 1.00
Plus number#napi-rs 23087804 ops/sec (±0.88%) 23159841 ops/sec (±0.64%) 1.00
Plus number#JavaScript 821714997 ops/sec (±0.12%) 820522103 ops/sec (±0.13%) 1.00
Create buffer#napi-rs 674480 ops/sec (±11.79%) 650685 ops/sec (±11.79%) 0.96
Create buffer#JavaScript 4104605 ops/sec (±2.89%) 3497565 ops/sec (±2.6%) 0.85
createArray#createArrayJson 54283 ops/sec (±0.48%) 53616 ops/sec (±0.53%) 0.99
createArray#create array for loop 9834 ops/sec (±0.22%) 9790 ops/sec (±0.45%) 1.00
createArray#create array with serde trait 9976 ops/sec (±1.24%) 10019 ops/sec (±0.6%) 1.00
getArrayFromJs#get array from json string 24068 ops/sec (±0.57%) 23940 ops/sec (±0.74%) 0.99
getArrayFromJs#get array from serde 13858 ops/sec (±0.14%) 13321 ops/sec (±0.67%) 0.96
getArrayFromJs#get array with for loop 16050 ops/sec (±0.55%) 15799 ops/sec (±0.45%) 0.98
Get Set property#Get Set from native#u32 579708 ops/sec (±12.77%) 569526 ops/sec (±12.65%) 0.98
Get Set property#Get Set from JavaScript#u32 527948 ops/sec (±3.25%) 545870 ops/sec (±2.43%) 1.03
Get Set property#Get Set from native#string 552646 ops/sec (±12.16%) 577604 ops/sec (±11.15%) 1.05
Get Set property#Get Set from JavaScript#string 501234 ops/sec (±2.86%) 514295 ops/sec (±2.13%) 1.03
Async task#spawn task 26979 ops/sec (±0.45%) 26764 ops/sec (±0.38%) 0.99
Async task#ThreadSafeFunction 9721 ops/sec (±0.74%) 9368 ops/sec (±0.76%) 0.96
Async task#Tokio future to Promise 32725 ops/sec (±1.01%) 32026 ops/sec (±1.21%) 0.98
Query#query * 100 3546 ops/sec (±1.98%) 3636 ops/sec (±0.58%) 1.03
Query#query * 1 26799 ops/sec (±1.27%) 26756 ops/sec (±0.84%) 1.00

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

@Brooooooklyn Brooooooklyn merged commit 00a3c13 into main Oct 30, 2024
@Brooooooklyn Brooooooklyn deleted the 10-30-feat_napi_impl_io_read_for_uint8array branch October 30, 2024 08:15
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