Skip to content

Instantly share code, notes, and snippets.

@sckevmit
Forked from jtaleric/results.py
Created January 17, 2018 14:13
Show Gist options
  • Save sckevmit/79b85447460ade85a0741fe07d647c50 to your computer and use it in GitHub Desktop.
Save sckevmit/79b85447460ade85a0741fe07d647c50 to your computer and use it in GitHub Desktop.
# Parse results
result = StringIO.StringIO('\n'.join(stdout.split('\n')[1:]))
creader = csv.reader(result)
report = []
for row in creader:
if len(row) >= 1 :
report.append(["single-{}".format(row[1]),row[2]])
report.append(["aggregate-{}".format(row[1]),row[3]])
print report
self.add_output(
additive={"title": "PBench UPerf Stats",
"description": "PBench UPerf Scenario",
"chart_plugin": "StatsTable",
"data": report})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment