File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import { HDRHistogramParsedStats } from './executors/base/types'
5
5
/* A wrapper for Histogram that gets us more precision. See
6
6
* https://github.com/HdrHistogram/HdrHistogramJS/issues/35
7
7
*
8
- * Values inserted will be truncated to `logBase 10 scalingFactor` (i.e. 3 )
8
+ * Values inserted will be truncated to `logBase 10 scalingFactor` (i.e. 4 )
9
9
* decimal places.
10
10
*/
11
11
export class PreciseHdrHistogram {
12
12
// We'll need to multiply by scalingFactor anything we insert, and divide by scalingFactor
13
13
// anything we output from here:
14
14
private _histogramDirty : hdr . Histogram
15
- static scalingFactor : number = 1000
15
+ static scalingFactor : number = 10000
16
16
17
17
constructor (
18
18
request : hdr . BuildRequest
@@ -76,7 +76,8 @@ export const defaultRequest: hdr.BuildRequest = {
76
76
autoResize : true ,
77
77
lowestDiscernibleValue : 1 ,
78
78
highestTrackableValue : 2 ,
79
- numberOfSignificantValueDigits : 3 ,
79
+ // NOTE: the default 'hdr-histogram-js' is 3, but we'll set it to the max of 5 here:
80
+ numberOfSignificantValueDigits : 5 ,
80
81
useWebAssembly : false ,
81
82
}
82
83
You can’t perform that action at this time.
0 commit comments