#NEWLINE# def test_calculate_scenario_stats_aggregate( self ) : #NEWLINE# #INDENT# first_byte_latency_all = [ 1 , 0.1 , 1.2 , 0.2 , 0.8 , 0.1 , 0.1 , 0.2 , 1 , 0.5 , 0.3 , 0.6 ] #NEWLINE# last_byte_latency_all = [ 3 , 0.8 , 2.2 , 0.3 , 2.8 , 0.4 , 0.2 , 0.5 , 1.8 , 0.8 , 0.4 , 0.699 ] #NEWLINE# self . assertDictEqual ( dict ( worker_count = 3 , start = 100.0 , stop = 152.2 , req_count = 12 , retries = 7 , errors = 1 , retry_rate = round ( ( ( 7.0 / 12 ) * 100 ) , 6 ) , avg_req_per_sec = round ( ( 12 / ( 152.2 - 100 ) ) , 6 ) , first_byte_latency = dict ( min = ( '%6.3f' % 0.1 ) , max = ( '%7.3f' % 1.2 ) , avg = ( '%7.3f' % ssbench . util . mean ( first_byte_latency_all ) ) , pctile = ( '%7.3f' % 1.2 ) , std_dev = ( '%7.3f' % ssbench . util . uncorrected_stdev ( first_byte_latency_all ) ) , median = ( '%7.3f' % ssbench . util . median ( first_byte_latency_all ) ) ) , last_byte_latency = dict ( min = ( '%6.3f' % 0.2 ) , max = ( '%7.3f' % 3.0 ) , avg = ( '%7.3f' % ssbench . util . mean ( last_byte_latency_all ) ) , pctile = ( '%7.3f' % 3.0 ) , std_dev = ( '%7.3f' % ssbench . util . uncorrected_stdev ( last_byte_latency_all ) ) , median = '  0.749' ) , worst_first_byte_latency = ( 1.2 , 'txID004' ) , worst_last_byte_latency = ( 3.0 , 'txID002' ) ) , self . reporter . stats [ 'agg_stats' ] )