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

Function test_csvjson_performance

tests/performance.py:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def test_csvjson_performance():
18 command = ['csvjson', os.path.join('examples', 'iris.csv')]
19 start_time = timeit.default_timer()
20 for _ in range(num_repeats):
21 subprocess.run(command, stdout=subprocess.DEVNULL) # redirect output to DEVNULL as we don't want to print it
22 elapsed = timeit.default_timer() - start_time
23 print(f"CSVKit csvjson performance test elapsed time: {elapsed} seconds")
24
25
26def test_csvlook_performance():

Callers 1

performance.pyFile · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected