performance: improve for PathString impl for EvaluationContext#430
Merged
tusharmath merged 9 commits intotailcallhq:mainfrom Oct 9, 2023
Merged
performance: improve for PathString impl for EvaluationContext#430tusharmath merged 9 commits intotailcallhq:mainfrom
tusharmath merged 9 commits intotailcallhq:mainfrom
Conversation
meskill
commented
Oct 6, 2023
337bdaf to
f295a78
Compare
tusharmath
reviewed
Oct 7, 2023
tusharmath
reviewed
Oct 7, 2023
Contributor
|
Can you share the improvement if any on |
… from EvaluationContext
f295a78 to
095edea
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #430 +/- ##
==========================================
- Coverage 85.15% 84.98% -0.17%
==========================================
Files 49 50 +1
Lines 4467 4490 +23
==========================================
+ Hits 3804 3816 +12
- Misses 663 674 +11
☔ View full report in Codecov by Sentry. |
Contributor
Author
Contributor
Author
|
Code coverage check has failed. Is it important here? Most of the changes I've made seems like didn't have tests in the first place |
Contributor
|
@meskill I think I missed out on some conflict resolutions. Can you please have a look. I think overall it looks good. |
Contributor
Author
Yeah, I've fixed the problem |
tusharmath
approved these changes
Oct 9, 2023
digital-phoenix
pushed a commit
to digital-phoenix/tailcall
that referenced
this pull request
Oct 12, 2023
* commit '234cd25e61d23bd2300a6e15bf0b9b4014a0073c': (25 commits) fix: cache control headers (tailcallhq#465) chore: update cron freq for PR staleness feat: group by endpoint (tailcallhq#451) chore: add codecov config CI: ignore build when no changes for executable (tailcallhq#454) feature: add `tc init` command (tailcallhq#403) fix: deploy (tailcallhq#457) fix(deps): update rust crate regex to 1.10.0 (tailcallhq#456) fix: cargo test fail in Sonoma or later of macos (tailcallhq#453) chore: update examples (tailcallhq#452) performance: improve for PathString impl for EvaluationContext (tailcallhq#430) chore: close stale branches after 2 days fix: restricted url for graphiQL (tailcallhq#447) performance: minor optimisation (tailcallhq#444) chore:update readme (tailcallhq#446) chore: update stale bot schedule chore: update stale bot message chore: use title case for job names in CI (tailcallhq#437) chore: remove write permissions chore: update stale YML permissions ...
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.

Summary:
Implement benchmark for
impl PathString for EvaluationContextand optimize its codeIssue Reference(s):
Fixes #347
/claim #347
Build & Testing:
cargo testsuccessfully../lint.shto address and fix linting issues.Checklist:
How to review
I suggest to review the pr commit by commit:
&[String]and&[str]async_graphql::ResolverContextto be able to create test environment for itResults
All results as text
❯ cargo bench --bench impl_path_string_for_evaluation_context -- --baseline init Compiling tailcall v0.1.0 (/home/nixos/Projects/open-source/rust/tailcall) Finished bench [optimized] target(s) in 33.22s Running benches/impl_path_string_for_evaluation_context.rs (target/release/deps/impl_path_string_for_evaluation_context-f4ac70d9689a5945) Gnuplot not found, using plotters backend input/value.root time: [31.628 ns 31.953 ns 32.409 ns] change: [-32.327% -30.975% -29.546%] (p = 0.00 < 0.05) Performance has improved. Found 2 outliers among 100 measurements (2.00%) 2 (2.00%) high severeinput/value.nested.existing
time: [65.308 ns 68.170 ns 71.823 ns]
change: [-11.594% -9.3241% -5.2798%] (p = 0.00 < 0.05)
Performance has improved.
Found 22 outliers among 100 measurements (22.00%)
16 (16.00%) high mild
6 (6.00%) high severe
input/value.missing time: [25.998 ns 27.113 ns 28.361 ns]
change: [-6.3436% -4.0818% -1.5430%] (p = 0.00 < 0.05)
Performance has improved.
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe
input/value.nested.missing
time: [52.774 ns 53.297 ns 53.985 ns]
change: [-7.7919% -5.3156% -3.1589%] (p = 0.00 < 0.05)
Performance has improved.
Found 9 outliers among 100 measurements (9.00%)
3 (3.00%) high mild
6 (6.00%) high severe
input/args.root time: [23.415 ns 23.532 ns 23.648 ns]
change: [-83.952% -83.854% -83.757%] (p = 0.00 < 0.05)
Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
input/args.nested.existing
time: [50.387 ns 51.123 ns 52.093 ns]
change: [-71.882% -71.237% -70.655%] (p = 0.00 < 0.05)
Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high severe
input/args.missing time: [13.291 ns 13.386 ns 13.498 ns]
change: [-89.743% -89.583% -89.384%] (p = 0.00 < 0.05)
Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe
input/args.nested.missing
time: [43.307 ns 43.736 ns 44.283 ns]
change: [-72.766% -71.938% -71.117%] (p = 0.00 < 0.05)
Performance has improved.
Found 18 outliers among 100 measurements (18.00%)
2 (2.00%) low severe
2 (2.00%) low mild
5 (5.00%) high mild
9 (9.00%) high severe
input/headers.existing time: [11.790 ns 11.873 ns 11.967 ns]
change: [-11.716% -9.2507% -7.0145%] (p = 0.00 < 0.05)
Performance has improved.
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high severe
input/headers.missing time: [13.003 ns 13.618 ns 14.300 ns]
change: [-4.6410% -1.5067% +1.9316%] (p = 0.38 > 0.05)
No change in performance detected.
Found 6 outliers among 100 measurements (6.00%)
3 (3.00%) high mild
3 (3.00%) high severe
input/vars.existing time: [5.5251 ns 5.5561 ns 5.5948 ns]
change: [-89.906% -89.417% -88.978%] (p = 0.00 < 0.05)
Performance has improved.
Found 8 outliers among 100 measurements (8.00%)
4 (4.00%) high mild
4 (4.00%) high severe
input/vars.missing time: [6.0952 ns 6.4040 ns 6.7412 ns]
change: [-85.395% -84.837% -84.228%] (p = 0.00 < 0.05)
Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe