|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Functions | |
| def | tDist (n) |
Variables | |
| list | benchmarks |
| dictionary | modes |
| int | runcount = 25 |
| int | keepruns = 20 |
| int | keepfrom = runcount - keepruns |
| js = sys.argv[1] | |
| list | tDistribution |
| dictionary | results = {} |
| dictionary | bmodes = modes["*"] |
| res = os.popen(js + " " + benchmark + "/" + mode + ".js").read() | |
| time = float(re.match("Time: ([0-9]*)ms", res).group(1)) | |
| dictionary | sresults = {} |
| dictionary | totals |
| sresult | |
| dictionary | result = results[benchmark][mode] |
| mean = sum(result) / len(result) | |
| stddev | |
| sm = stddev / mean | |
| sem = stddev / math.sqrt(len(result)) | |
| semm = sem / mean | |
| def | ci = tDist(len(result)) * sem |
| def | cim = ci / mean |
| int | power = 1 / totals["runs"] |
| def harness.tDist | ( | n | ) |
| list harness.benchmarks |
| dictionary harness.bmodes = modes["*"] |
| harness.js = sys.argv[1] |
| int harness.keepruns = 20 |
| dictionary harness.modes |
| int harness.power = 1 / totals["runs"] |
| dictionary harness.result = results[benchmark][mode] |
| dictionary harness.results = {} |
| int harness.runcount = 25 |
| harness.sresult |
| dictionary harness.sresults = {} |
| harness.stddev |
| list harness.tDistribution |
| harness.time = float(re.match("Time: ([0-9]*)ms", res).group(1)) |
| dictionary harness.totals |
1.8.13