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

Function test_csvformat_performance

tests/performance.py:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def test_csvformat_performance():
9 command = ['csvformat', os.path.join('examples', 'iris.csv')]
10 start_time = timeit.default_timer()
11 for _ in range(num_repeats):
12 subprocess.run(command, stdout=subprocess.DEVNULL) # redirect output to DEVNULL as we don't want to print it
13 elapsed = timeit.default_timer() - start_time
14 print(f"CSVKit csvformat performance test elapsed time: {elapsed} seconds")
15
16
17def test_csvjson_performance():

Callers 1

performance.pyFile · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected