Skip to content

Commit a9fa6af

Browse files
committed
Added string to denote time interval
1 parent cfd59d3 commit a9fa6af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test-performance/timesInsert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
connection.commit()
2323
smallIterationsInsertTime = time.clock() - smallIterationsInsertTime
2424

25-
print("\n Elapse time of SMALL_INSERT_ITERATIONS = " + str(smallIterationsInsertTime))
25+
print("\n Elapse time of SMALL_INSERT_ITERATIONS = " + str(smallIterationsInsertTime) + "s")
2626

2727
""" Begin SMALL_SELECT_ITERATIONS test"""
2828

2929
smallIterationsSelectTime = time.clock()
3030
cursor.execute("select * from perf_test")
3131
cursor.fetchall()
3232
smallIterationsSelectTime = time.clock() - smallIterationsSelectTime
33-
print("\n Elapse time of SMALL_SELECT_ITERATIONS = " + str(smallIterationsSelectTime))
33+
print("\n Elapse time of SMALL_SELECT_ITERATIONS = " + str(smallIterationsSelectTime) + "s")
3434

3535
""" Begin LARGE_INSERT_ITERATIONS test"""
3636
cursor.execute(dropTable)
@@ -42,7 +42,7 @@
4242
connection.commit()
4343
largeIterationsInsertTime = time.clock() - largeIterationsInsertTime
4444

45-
print("\n Elapse time of LARGE_INSERT_ITERATIONS = " + str(largeIterationsInsertTime))
45+
print("\n Elapse time of LARGE_INSERT_ITERATIONS = " + str(largeIterationsInsertTime) + "s")
4646

4747
""" Begin LARGE_SELECT_ITERATIONS test"""
4848

@@ -51,7 +51,7 @@
5151
cursor.fetchall()
5252
largeIterationsSelectTime = time.clock() - largeIterationsSelectTime
5353

54-
print("\n Elapse time of LARGE_SELECT_ITERATIONS = " + str(largeIterationsSelectTime))
54+
print("\n Elapse time of LARGE_SELECT_ITERATIONS = " + str(largeIterationsSelectTime) + "s")
5555

5656
if largeIterationsInsertTime > smallIterationsInsertTime * 1000 :
5757
print("Insert is too slow!")

0 commit comments

Comments
 (0)