MCPcopy Index your code
hub / github.com/python/cpython / _prepare_data

Method _prepare_data

Tools/scripts/sortperf.py:131–134  ·  view source on GitHub ↗
(self, loops: int)

Source from the content-addressed store, hash-verified

129 return time.perf_counter() - start
130
131 def _prepare_data(self, loops: int) -> list[float]:
132 bench = BENCHMARKS[self._name]
133 data = bench(self._size, self._random)
134 return [data.copy() for _ in range(loops)]
135
136
137def add_cmdline_args(cmd: list[str], args) -> None:

Callers 1

runMethod · 0.95

Calls 2

benchFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected