MCPcopy Index your code
hub / github.com/nodejs/node / PrintComparison

Method PrintComparison

deps/v8/tools/perf-compare.py:364–376  ·  view source on GitHub ↗
(self, run, main_run)

Source from the content-addressed store, hash-verified

362
363
364 def PrintComparison(self, run, main_run):
365 if run is None or main_run is None:
366 self.PrintEmptyCell()
367 return
368 diff = run.Compare(main_run)
369 res = diff.percentage_string()
370 if diff.isSignificant():
371 res = self.bold(res)
372 if diff.isNotablyPositive():
373 res = self.green(res)
374 elif diff.isNotablyNegative():
375 res = self.red(res)
376 self.Print(" <td>%s</td>" % res)
377
378
379 def PrintEmptyCell(self):

Callers 1

RenderFunction · 0.95

Calls 10

PrintEmptyCellMethod · 0.95
boldMethod · 0.95
greenMethod · 0.95
redMethod · 0.95
PrintMethod · 0.95
percentage_stringMethod · 0.80
isSignificantMethod · 0.80
isNotablyPositiveMethod · 0.80
isNotablyNegativeMethod · 0.80
CompareMethod · 0.45

Tested by

no test coverage detected