()
| 6 | |
| 7 | |
| 8 | def 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 | |
| 17 | def test_csvjson_performance(): |