OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client 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 # This script produces csv data from multiple benchmarking runs with the | 6 # This script produces csv data from multiple benchmarking runs with the |
7 # spec2k harness. | 7 # spec2k harness. |
8 # | 8 # |
9 # A typical usage would be | 9 # A typical usage would be |
10 # | 10 # |
11 # export SPEC_RUN_REPETITIONS=3 | 11 # export SPEC_RUN_REPETITIONS=3 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ExtractResults(setting, fin) | 102 ExtractResults(setting, fin) |
103 fin.close() | 103 fin.close() |
104 else: | 104 else: |
105 for line in sys.stdin: | 105 for line in sys.stdin: |
106 tokens = line.split() | 106 tokens = line.split() |
107 if not tokens: continue | 107 if not tokens: continue |
108 assert len(tokens) == 3 | 108 assert len(tokens) == 3 |
109 AddDataPoint(tokens[0], tokens[1], float(tokens[2])) | 109 AddDataPoint(tokens[0], tokens[1], float(tokens[2])) |
110 | 110 |
111 DumpCsv() | 111 DumpCsv() |
OLD | NEW |