MCPcopy Create free account
hub / github.com/wireservice/csvkit / test_csvpy_performance

Function test_csvpy_performance

tests/performance.py:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_csvpy_performance():
36 command = ['csvpy', os.path.join('examples', 'iris.csv')]
37 start_time = timeit.default_timer()
38 for _ in range(num_repeats):
39 subprocess.run(command, stdout=subprocess.DEVNULL) # redirect output to DEVNULL as we don't want to print it
40 elapsed = timeit.default_timer() - start_time
41 print(f"CSVKit csvpy performance test elapsed time: {elapsed} seconds")
42
43
44def test_csvsql_performance():

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected