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

Method Run

deps/v8/tools/run_perf.py:885–905  ·  view source on GitHub ↗

Execute the benchmark's main file. Args: runnable: A Runnable benchmark instance. count: The number of this (repeated) run. secondary: True if secondary run should be executed. Returns: A tuple with the two benchmark outputs. The latter will be NULL_OUTPUT if

(self, runnable, count, secondary)

Source from the content-addressed store, hash-verified

883 return output
884
885 def Run(self, runnable, count, secondary):
886 """Execute the benchmark's main file.
887
888 Args:
889 runnable: A Runnable benchmark instance.
890 count: The number of this (repeated) run.
891 secondary: True if secondary run should be executed.
892
893 Returns:
894 A tuple with the two benchmark outputs. The latter will be NULL_OUTPUT if
895 secondary is False.
896 """
897 self.warmup_manager.maybe_warm_up(
898 runnable.name,
899 lambda: self._LoggedRun(
900 runnable, 0, secondary=False, post_process=False))
901 output = self._LoggedRun(runnable, count, secondary=False)
902 if secondary:
903 return output, self._LoggedRun(runnable, count, secondary=True)
904 else:
905 return output, NULL_OUTPUT
906
907
908class DesktopPlatform(Platform):

Callers 1

MainFunction · 0.45

Calls 2

_LoggedRunMethod · 0.95
maybe_warm_upMethod · 0.45

Tested by

no test coverage detected