()
| 15 | |
| 16 | |
| 17 | def 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 | |
| 26 | def test_csvlook_performance(): |