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

fix wrong implementation for percentile in bookkeeper-benchmark #3864

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

trevor211
Copy link
Contributor

According to https://stackoverflow.com/questions/12808934/what-is-p99-latency, the implementation for percentile in bookkeeper-benchmark is wrong.

Descriptions of the changes in this PR:

Motivation

When I did benchmark tests using bookeeper-benchmark, I found that the percentile output seemed wrong. After checking the source code I think the current implementation is wrong.

Changes

Fix function percentile in bookkeeper-benchmark to make it corrent.

@codecov-commenter
Copy link

Codecov Report

Merging #3864 (f5cd426) into master (ebf3108) will decrease coverage by 25.41%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #3864       +/-   ##
=============================================
- Coverage     65.25%   39.84%   -25.41%     
+ Complexity     6504     3943     -2561     
=============================================
  Files           473      473               
  Lines         40987    40987               
  Branches       5243     5243               
=============================================
- Hits          26745    16332    -10413     
- Misses        12040    22894    +10854     
+ Partials       2202     1761      -441     
Flag Coverage Δ
bookie 39.84% <ø> (-0.04%) ⬇️
client ?
replication ?

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

see 267 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shoothzj
Copy link
Member

shoothzj commented Apr 9, 2024

Sorry for my late reply, Could you please rebase the master code? There may has some flaky tests.

According to `https://stackoverflow.com/questions/12808934/what-is-p99-latency`,
the implementation for `percentile` in bookkeeper-benchmark is wrong.

Co-authored-by: ZhangJian He <shoothzj@gmail.com>
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
@shoothzj shoothzj force-pushed the fix_benchmark_percentile branch from f5cd426 to 8e96008 Compare April 22, 2024 08:02
@shoothzj shoothzj merged commit 55ffbd7 into apache:master Apr 22, 2024
20 checks passed
@shoothzj
Copy link
Member

@trevor211 Thanks for your contribution, looking forward to your future contributions. :)

@hangc0276 hangc0276 added this to the 4.18.0 milestone May 25, 2024
shoothzj pushed a commit that referenced this pull request May 25, 2024
)

According to `https://stackoverflow.com/questions/12808934/what-is-p99-latency`,
the implementation for `percentile` in bookkeeper-benchmark is wrong.

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
(cherry picked from commit 55ffbd7)
shoothzj pushed a commit that referenced this pull request May 25, 2024
)

According to `https://stackoverflow.com/questions/12808934/what-is-p99-latency`,
the implementation for `percentile` in bookkeeper-benchmark is wrong.

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
(cherry picked from commit 55ffbd7)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
…ache#3864)

According to `https://stackoverflow.com/questions/12808934/what-is-p99-latency`,
the implementation for `percentile` in bookkeeper-benchmark is wrong.

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants