This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,8 @@ bp.calcStats = function() {
252
252
tpa = bp . getTimesPerAction ( stepName ) ,
253
253
reportModel ,
254
254
avg ,
255
- timesConfidenceInterval ;
255
+ timesConfidenceInterval ,
256
+ timesStandardDeviation ;
256
257
257
258
bp . updateTimes ( tpa , tpa . nextEntry , 'gcTimes' , gcTimeForStep ) ;
258
259
bp . updateTimes ( tpa , tpa . nextEntry , 'garbageTimes' , garbageTimeForStep / 1e3 ) ;
@@ -266,16 +267,17 @@ bp.calcStats = function() {
266
267
tpa . gcTimes ,
267
268
tpa . garbageTimes ,
268
269
tpa . retainedTimes ) ;
269
-
270
+ timesStandardDeviation = bp . Statistics . calculateStandardDeviation ( tpa . times , avg . time ) ;
270
271
timesConfidenceInterval = bp . Statistics . calculateConfidenceInterval (
271
- bp . Statistics . calculateStandardDeviation ( tpa . times , avg . time ) ,
272
+ timesStandardDeviation ,
272
273
tpa . times . length
273
274
) ;
274
275
275
276
reportModel = bp . generateReportModel ( {
276
277
name : stepName ,
277
278
avg : avg ,
278
279
times : tpa . fmtTimes ,
280
+ timesStandardDeviation : timesStandardDeviation ,
279
281
timesRelativeMarginOfError : bp . Statistics . calculateRelativeMarginOfError ( timesConfidenceInterval , avg . time ) ,
280
282
gcTimes : tpa . fmtGcTimes ,
281
283
garbageTimes : tpa . fmtGarbageTimes ,
Original file line number Diff line number Diff line change 70
70
< td class = "average" >
71
71
test:< %= avg . time % > ms ± < % - Math . round ( timesRelativeMarginOfError * 100 ) % > %
72
72
< br >
73
+ deviation: < %= timesStandardDeviation % >
74
+ < br >
73
75
gc:< %= avg . gcTime % > ms
74
76
< br >
75
77
combined: < %= avg . combinedTime % > ms
You can’t perform that action at this time.
0 commit comments