From aa221528d17cc49e86201a871b8d87bd3096691f Mon Sep 17 00:00:00 2001 From: filipecosta90 Date: Thu, 29 Sep 2022 22:01:16 +0100 Subject: [PATCH] Fixed hdrhistogram setup due to value is too large to be recorded --- benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark.go b/benchmark.go index 4f38482..317cd18 100644 --- a/benchmark.go +++ b/benchmark.go @@ -140,7 +140,7 @@ func WildcardBenchmark(terms []string, field string, idx index.Index, prefixMinL // // If outfile is "-" we write the result to stdout func Benchmark(concurrency int, duration time.Duration, instantMutex *sync.Mutex, engine, title string, outfile string, reportingPeriod time.Duration, tab *tabwriter.Writer, f func() error) { - totalHistogram = hdrhistogram.New(1, 1000000, 3) + totalHistogram = hdrhistogram.New(1, 1000000000, 3) var out io.WriteCloser var err error