#NEWLINE# def ParseOutput( client ) : #NEWLINE# #INDENT# ( stdout , _ ) = client . RemoteCommand ( ( 'cd %s && cd $(ls -Art | tail -n 1) && cat summary.xml' % OUTPUT_DIR ) ) #NEWLINE# ops_per_sec = re . findall ( '\\<metric unit="ops/sec"\\>(\\d+\\.?\\d*)' , stdout ) #NEWLINE# sum_ops_per_sec = 0.0 #NEWLINE# for value in stdout : #NEWLINE# #INDENT# sum_ops_per_sec += float ( value ) #NEWLINE# #UNINDENT# sum_ops_per_sec /= 2 #NEWLINE# latency = re . findall ( '\\<p90th\\>(\\d+\\.\\d*)' , stdout ) #NEWLINE# latency99 = re . findall ( '\\<p99th\\>(\\d+\\.\\d*)' , stdout ) #NEWLINE# return ( sum_ops_per_sec , latency , latency99 )