Skip to content

fix wrong implementation for percentile in bookkeeper-benchmark#3864

Merged
hezhangjian merged 1 commit into
apache:masterfrom
trevor211:fix_benchmark_percentile
Apr 22, 2024
Merged

fix wrong implementation for percentile in bookkeeper-benchmark#3864
hezhangjian merged 1 commit into
apache:masterfrom
trevor211:fix_benchmark_percentile

Conversation

@trevor211

Copy link
Copy Markdown
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
Copy Markdown

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

@hezhangjian

Copy link
Copy Markdown
Member

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>
@hezhangjian
hezhangjian force-pushed the fix_benchmark_percentile branch from f5cd426 to 8e96008 Compare April 22, 2024 08:02
@hezhangjian
hezhangjian merged commit 55ffbd7 into apache:master Apr 22, 2024
@hezhangjian

Copy link
Copy Markdown
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
hezhangjian 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)
hezhangjian 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>
lhotari pushed a commit that referenced this pull request Apr 17, 2025
)

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)
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.

5 participants