OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2012 The Chromium Authors. All rights reserved. | 2 # Copyright 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 import time | 8 import time |
9 | 9 |
10 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) | 10 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 print "%s: avg=%f; stdev=%f; min=%f; 75th percentile = %f" % ( | 39 print "%s: avg=%f; stdev=%f; min=%f; 75th percentile = %f" % ( |
40 "Round trip time (seconds)", | 40 "Round trip time (seconds)", |
41 avg, stdev, min(times), percentile_75) | 41 avg, stdev, min(times), percentile_75) |
42 | 42 |
43 return 0 | 43 return 0 |
44 | 44 |
45 | 45 |
46 if __name__ == '__main__': | 46 if __name__ == '__main__': |
47 sys.exit(Main(sys.argv[1:])) | 47 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |