HdrHistogram / HdrHistogram/HdrHistogram_c

hdr_value_at_percentile says 95th percentile of empty histogram is 63

Open
#116 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
290
Forks
111
Avg merge
1d 16h
Merged PRs (30d)
3

Description

Steps to repro:

hdr_histogram* histogram;
hdr_init(100, 10 * 1000 * 1000, 3, &histogram);
std::cout << hdr_value_at_percentile(histogram, 95) << std::endl;

Is there a more intuitive value that could be returned here eg zero?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the hdr_value_at_percentile entry point and run the supplied empty-histogram reproduction to confirm the current result. Trace how an empty histogram is handled, then establish the expected empty-case value and verify that the reproduction reports that defined behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.