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

Function main

example_code/item_079/parallel/run_serial.py:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31]
32
33def main():
34 start = time.perf_counter()
35 results = list(map(my_module.gcd, NUMBERS))
36 end = time.perf_counter()
37 delta = end - start
38 print(f"Took {delta:.3f} seconds")
39
40if __name__ == "__main__":
41 main()

Callers 1

run_serial.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected