This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ bp.Report.getTimesPerAction = function(name) {
177
177
tpa [ c ] = {
178
178
recent : undefined ,
179
179
history : [ ] ,
180
- avg : { }
180
+ avg : { } ,
181
+ min : Number . MAX_VALUE ,
182
+ max : Number . MIN_VALUE
181
183
} ;
182
184
} ) ;
183
185
}
@@ -194,9 +196,12 @@ bp.Report.rightSizeTimes = function(times) {
194
196
} ;
195
197
196
198
bp . Report . updateTimes = function ( tpa , index , reference , recentTime ) {
197
- tpa [ reference ] . recent = recentTime ;
198
- tpa [ reference ] . history [ index ] = recentTime ;
199
- tpa [ reference ] . history = bp . Report . rightSizeTimes ( tpa [ reference ] . history ) ;
199
+ var curTpa = tpa [ reference ] ;
200
+ curTpa . recent = recentTime ;
201
+ curTpa . history [ index ] = recentTime ;
202
+ curTpa . history = bp . Report . rightSizeTimes ( curTpa . history ) ;
203
+ curTpa . min = Math . min ( curTpa . min , recentTime ) ;
204
+ curTpa . max = Math . max ( curTpa . max , recentTime ) ;
200
205
} ;
201
206
202
207
bp . Report . calcStats = function ( ) {
Original file line number Diff line number Diff line change 70
70
± < %= Math . round ( testTime . avg . coefficientOfVariation * 100 ) % > %
71
71
< br >
72
72
(stddev < %= testTime . avg . stdDev . toFixed ( 2 ) % > )
73
+ < br >
74
+ (min < %= testTime . min . toFixed ( 2 ) % > /
75
+ max < %= testTime . max . toFixed ( 2 ) % > )
73
76
</ div >
74
77
< div class = "td col-md-2" >
75
78
mean: < %= gcTime . avg . mean . toFixed ( 2 ) % > ms
You can’t perform that action at this time.
0 commit comments