MCPcopy Index your code
hub / github.com/wireservice/csvkit / test_csvstat_performance

Function test_csvstat_performance

tests/performance.py:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_csvstat_performance():
54 command = ['csvstat', os.path.join('examples', 'iris.csv')]
55 start_time = timeit.default_timer()
56 for _ in range(num_repeats):
57 subprocess.run(command, stdout=subprocess.DEVNULL) # redirect output to DEVNULL as we don't want to print it
58 elapsed = timeit.default_timer() - start_time
59 print(f"CSVKit csvstat performance test elapsed time: {elapsed} seconds")
60
61
62test_csvformat_performance()

Callers 1

performance.pyFile · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected