8 proc
= subprocess
.Popen(["./mach", "gtest", sys
.argv
[1]], stdout
=subprocess
.PIPE
)
9 for line
in proc
.stdout
:
10 if line
.startswith(b
"PERFHERDER_DATA:"):
11 data
= json
.loads(line
[len("PERFHERDER_DATA:") :].decode("utf8"))
12 for suite
in data
["suites"]:
13 for subtest
in suite
["subtests"]:
16 "%4d.%03d ± %6s ms %s.%s"
18 subtest
["value"] / 1000.0,
19 subtest
["value"] % 1000,
20 "%.3f" % (statistics
.stdev(subtest
["replicates"]) / 1000),