#NEWLINE# def Run( benchmark_spec ) : #NEWLINE# #INDENT# 'Measure the boot time for all VMs.\n\n  Args:\n    benchmark_spec: The benchmark specification. Contains all data that is\n        required to run the benchmark.\n\n  Returns:\n    A list of sample.Sample objects with the benchmark results.\n  ' #NEWLINE# vms = receiving_vm . vms #NEWLINE# results = [ ] #NEWLINE# for originator in [ 0 , 1 ] : #NEWLINE# #INDENT# sending_vm = vms [ originator ] #NEWLINE# receiving_vm = vms [ ( originator ^ 1 ) ] #NEWLINE# if vm_util . ShouldRunOnExternalIpAddress ( ) : #NEWLINE# #INDENT# results . extend ( ntttcp . RunNtttcp ( sending_vm , receiving_vm , receiving_vm . ip_address , 'external' ) ) #NEWLINE# #UNINDENT# if vm_util . ShouldRunOnInternalIpAddress ( sending_vm , receiving_vm ) : #NEWLINE# #INDENT# results . extend ( ntttcp . RunNtttcp ( sending_vm , receiving_vm , receiving_vm . internal_ip , 'internal' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return results