Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more benchmarks for V8 #1106

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Add more benchmarks for V8 #1106

merged 1 commit into from
Apr 11, 2023

Conversation

martintmk
Copy link
Contributor

@martintmk martintmk commented Apr 11, 2023

Details on the issue fix or feature implementation

This PR adds more benchmark for V8 resilience strategies.

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

@martintmk martintmk changed the title Add more benchmarks Add more benchmarks for V8 Apr 11, 2023
|---------------------- |---------:|--------:|--------:|------:|--------:|-------:|----------:|------------:|
| ExecuteRateLimiter_V7 | 173.8 ns | 2.33 ns | 3.48 ns | 1.00 | 0.00 | 0.0448 | 376 B | 1.00 |
| ExecuteRateLimiter_V8 | 207.9 ns | 2.06 ns | 2.89 ns | 1.19 | 0.03 | 0.0229 | 192 B | 0.51 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that this one is slower.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup surprised me too. It also allocates on every call (around 40 bytes, the remaining 152 bytes will be addressed by pooling the ResilienceContext).

Might be something that could be addressed with .NET folks.

cc @juraj-blazek @geeknoid

@codecov-commenter
Copy link

Codecov Report

Merging #1106 (0e15208) into main (23c427e) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main    #1106   +/-   ##
=======================================
  Coverage   77.69%   77.69%           
=======================================
  Files         199      199           
  Lines        4748     4748           
  Branches      846      846           
=======================================
  Hits         3689     3689           
  Misses        854      854           
  Partials      205      205           
Flag Coverage Δ
linux ?
macos 77.69% <ø> (ø)
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@martintmk martintmk self-assigned this Apr 11, 2023
@martintmk martintmk added the v8 Issues related to the new version 8 of the Polly library. label Apr 11, 2023
@martintmk martintmk added this to the v8.0.0 milestone Apr 11, 2023
@martintmk martintmk merged commit cfd3d56 into main Apr 11, 2023
@martintmk martintmk deleted the mtomka/more-benchmarks branch April 11, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues related to the new version 8 of the Polly library.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants