webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
harness Namespace Reference

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"]
 

Function Documentation

◆ tDist()

def harness.tDist (   n)

Variable Documentation

◆ benchmarks

list harness.benchmarks
Initial value:
1 = ["amazon/chrome", "amazon/firefox", "amazon/safari",
2  "facebook/chrome", "facebook/firefox", "facebook/safari",
3  "google/chrome", "google/firefox", "google/safari",
4  "twitter/chrome", "twitter/firefox", "twitter/safari",
5  "yahoo/chrome", "yahoo/firefox", "yahoo/safari"]

◆ bmodes

dictionary harness.bmodes = modes["*"]

◆ ci

def harness.ci = tDist(len(result)) * sem

◆ cim

def harness.cim = ci / mean

◆ js

harness.js = sys.argv[1]

◆ keepfrom

int harness.keepfrom = runcount - keepruns

◆ keepruns

int harness.keepruns = 20

◆ mean

harness.mean = sum(result) / len(result)

◆ modes

dictionary harness.modes
Initial value:
1 = {
2  "*": ["urem"],
3  "amazon/firefox": ["urm"],
4  "google/firefox": ["uem"]
5 }

◆ power

int harness.power = 1 / totals["runs"]

◆ res

harness.res = os.popen(js + " " + benchmark + "/" + mode + ".js").read()

◆ result

dictionary harness.result = results[benchmark][mode]

◆ results

dictionary harness.results = {}

◆ runcount

int harness.runcount = 25

◆ sem

harness.sem = stddev / math.sqrt(len(result))

◆ semm

harness.semm = sem / mean

◆ sm

harness.sm = stddev / mean

◆ sresult

harness.sresult

◆ sresults

dictionary harness.sresults = {}

◆ stddev

harness.stddev
Initial value:
1 = math.sqrt(
2  sum(
3  map(lambda e: math.pow(e - mean, 2), result)
4  ) / (len(result) - 1)
5  )
if sum(size(rttStatsVec)) > 0 figure
typename detail::make_map< Ts... >::type map
Definition: Brigand.h:223
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char int len
Definition: x509.h:1053

◆ tDistribution

list harness.tDistribution

◆ time

harness.time = float(re.match("Time: ([0-9]*)ms", res).group(1))

◆ totals

dictionary harness.totals
Initial value:
1 = {
2  "mean": 1,
3  "stddev": 1,
4  "sem": 1,
5  "ci": 1,
6  "runs": 0
7 }