MCPcopy Create free account
hub / github.com/nodejs/node / appendResult

Method appendResult

deps/v8/tools/perf-compare.py:145–153  ·  view source on GitHub ↗
(self, run_name, trace)

Source from the content-addressed store, hash-verified

143 return self.runs_.get(run_name)
144
145 def appendResult(self, run_name, trace):
146 values = map(float, trace['results'])
147 count = len(values)
148 mean = Statistics.Mean(values)
149 stddev = float(trace.get('stddev') or
150 Statistics.StandardDeviation(values, mean))
151 units = trace["units"]
152 # print run_name, units, count, mean, stddev
153 self.runs_[run_name] = BenchmarkResult(units, count, mean, stddev)
154
155
156class BenchmarkSuite:

Callers 1

RenderFunction · 0.80

Calls 5

MeanMethod · 0.80
StandardDeviationMethod · 0.80
BenchmarkResultClass · 0.70
getMethod · 0.65
mapFunction · 0.50

Tested by

no test coverage detected