Mercurial > hg > graal-compiler
changeset 3187:6ff76a1b8339
The benchmark tool should now print zero values to the csv file, if a benchmark fails
author | Josef Haider <josef.haider@khg.jku.at> |
---|---|
date | Thu, 07 Jul 2011 19:43:17 +0200 |
parents | 0baa318b28f5 |
children | 78b183d482ba |
files | perf/benchmarktool.sh |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/perf/benchmarktool.sh Thu Jul 07 18:31:25 2011 +0200 +++ b/perf/benchmarktool.sh Thu Jul 07 19:43:17 2011 +0200 @@ -112,6 +112,11 @@ csvOutput[csvOutputLine].append(match.group(5)) else: matchGraalTime(line, csvOutput, csvOutputLine, options.n) + + if nRuns < options.n: + csvOutputLine = csvOutputLine + (options.n - nRuns) + for i in range(options.n - nRuns): + csvOutput.append([str(nRuns + i), benchmark, '0']) writeout(outputFile, csvOutput) @@ -126,12 +131,8 @@ benchmarkScore = re.compile(r"([a-zA-Z0-9_\(\),= ]+):\s+([0-9]+\.[0-9]+)$") - csvOutput = [['run']] - csvOutputLine = 0 + csvOutput = [['run'],[]] scOutput = runBash(cmd) - csvOutputLine = csvOutputLine + 1 - csvOutput.append(list()) - csvOutput[csvOutputLine].append(str(csvOutputLine)) while True: line = scOutput.readline().decode() if not line: @@ -139,12 +140,11 @@ line = line.strip() match = benchmarkScore.search(line) if match: - if csvOutputLine == 1: - csvOutput[0].append(match.group(1).strip()) print('Scimark '+match.group(1)+' score: '+match.group(2)) - csvOutput[csvOutputLine].append(match.group(2)) + csvOutput[0].append(match.group(1).strip()) + csvOutput[1].append(match.group(2)) else: - matchGraalTime(line,csvOutput,csvOutputLine, 1) + matchGraalTime(line,csvOutput, 1, 1) writeout(outputFile, csvOutput) outputFile.close()