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

Method run

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

Source from the content-addressed store, hash-verified

120 self._random = random.Random(self._seed)
121
122 def run(self, loops: int) -> float:
123 all_data = self._prepare_data(loops)
124 start = time.perf_counter()
125
126 for data in all_data:
127 data.sort() # Benching this method!
128
129 return time.perf_counter() - start
130
131 def _prepare_data(self, loops: int) -> list[float]:
132 bench = BENCHMARKS[self._name]

Callers 1

get_openssl_git_commitFunction · 0.45

Calls 2

_prepare_dataMethod · 0.95
sortMethod · 0.45

Tested by

no test coverage detected