diff --git a/tests/pytest/tools/schemalessInsertPerformance.py b/tests/pytest/tools/schemalessInsertPerformance.py index 10c4dac003f753383bf348a7d3afa7e6d02c2ab8..40c399ea56f8e14da5ed3c0b22182cb56439b018 100644 --- a/tests/pytest/tools/schemalessInsertPerformance.py +++ b/tests/pytest/tools/schemalessInsertPerformance.py @@ -120,8 +120,10 @@ class TDTestCase: print(threading.current_thread().name, "length=", len(batch_list)) print(threading.current_thread().name, 'firstline', batch_list[0][0:50], '...', batch_list[0][-50:-1]) print(threading.current_thread().name, 'lastline:', batch_list[-1][0:50], '...', batch_list[-1][-50:-1]) + begin = time.time_ns(); self._conn.insertLines(batch_list) - print(threading.current_thread().name, 'end') + end = time.time_ns(); + print(threading.current_thread().name, 'end time:', (end-begin)/10**9) def splitGenerator(self, table_list, sub_list_len): '''