#NEWLINE# def Run( benchmark_spec ) : #NEWLINE# #INDENT# client = benchmark_spec . vm_groups [ 'client' ] [ 0 ] #NEWLINE# set_faban_home = 'export FABAN_HOME=%s && cd %s && ./run.sh' #NEWLINE# client . RobustRemoteCommand ( ( set_faban_home % ( FABAN_HOME , FABAN_HOME ) ) ) #NEWLINE# results = [ ] #NEWLINE# ( sum_ops_per_sec , latency , latency99 ) = ParseOutput ( client ) #NEWLINE# results . append ( sample . Sample ( 'Operations per second' , sum_ops_per_sec , 'ops/s' ) ) #NEWLINE# results . append ( sample . Sample ( '90th percentile latency HomePage ' , float ( latency [ 0 ] ) , 'seconds' ) ) #NEWLINE# results . append ( sample . Sample ( '99th percentile latency HomePage' , float ( latency99 [ 0 ] ) , 'seconds' ) ) #NEWLINE# return results