feat(napi-derive): add async_runtime attribute#2270
Merged
Brooooooklyn merged 1 commit intomainfrom Sep 23, 2024
Merged
Conversation
Member
Author
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @Brooooooklyn and the rest of your teammates on |
Contributor
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: aa31616 | Previous: fec8ff4 | Ratio |
|---|---|---|---|
noop#napi-rs |
84819978 ops/sec (±1.34%) |
85775384 ops/sec (±0.29%) |
1.01 |
noop#JavaScript |
815151648 ops/sec (±0.21%) |
812064072 ops/sec (±0.23%) |
1.00 |
Plus number#napi-rs |
22784178 ops/sec (±0.62%) |
22309906 ops/sec (±0.21%) |
0.98 |
Plus number#JavaScript |
814508900 ops/sec (±0.21%) |
814895050 ops/sec (±0.11%) |
1.00 |
Create buffer#napi-rs |
663232 ops/sec (±12.3%) |
632913 ops/sec (±12.39%) |
0.95 |
Create buffer#JavaScript |
3378155 ops/sec (±2.1%) |
3169904 ops/sec (±2.29%) |
0.94 |
createArray#createArrayJson |
54147 ops/sec (±0.46%) |
53796 ops/sec (±0.39%) |
0.99 |
createArray#create array for loop |
9905 ops/sec (±0.29%) |
9939 ops/sec (±0.35%) |
1.00 |
createArray#create array with serde trait |
9845 ops/sec (±0.72%) |
9945 ops/sec (±0.35%) |
1.01 |
getArrayFromJs#get array from json string |
24536 ops/sec (±0.36%) |
24248 ops/sec (±0.71%) |
0.99 |
getArrayFromJs#get array from serde |
13026 ops/sec (±0.25%) |
12856 ops/sec (±0.88%) |
0.99 |
getArrayFromJs#get array with for loop |
16314 ops/sec (±0.48%) |
16110 ops/sec (±0.1%) |
0.99 |
Get Set property#Get Set from native#u32 |
570491 ops/sec (±12.23%) |
579033 ops/sec (±12.27%) |
1.01 |
Get Set property#Get Set from JavaScript#u32 |
551092 ops/sec (±2.21%) |
540394 ops/sec (±2.08%) |
0.98 |
Get Set property#Get Set from native#string |
564309 ops/sec (±10.97%) |
567182 ops/sec (±10.79%) |
1.01 |
Get Set property#Get Set from JavaScript#string |
518194 ops/sec (±1.87%) |
516065 ops/sec (±1.82%) |
1.00 |
Async task#spawn task |
26052 ops/sec (±0.39%) |
26294 ops/sec (±0.57%) |
1.01 |
Async task#ThreadSafeFunction |
9488 ops/sec (±0.72%) |
9410 ops/sec (±0.74%) |
0.99 |
Async task#Tokio future to Promise |
32275 ops/sec (±0.89%) |
32734 ops/sec (±0.73%) |
1.01 |
Query#query * 100 |
3563 ops/sec (±0.3%) |
3615 ops/sec (±0.41%) |
1.01 |
Query#query * 1 |
27086 ops/sec (±0.91%) |
26959 ops/sec (±0.74%) |
1.00 |
This comment was automatically generated by workflow using github-action-benchmark.
06c20e3 to
aa31616
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.