MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / run_linear

Function run_linear

example_code/item_102.py:94–96  ·  view source on GitHub ↗
(data, to_lookup)

Source from the content-addressed store, hash-verified

92to_lookup = [random.randint(0, size) for _ in range(iterations)]
93
94def run_linear(data, to_lookup):
95 for index in to_lookup:
96 data.index(index)
97
98def run_bisect(data, to_lookup):
99 for index in to_lookup:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected