File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2222connection .commit ()
2323smallIterationsInsertTime = 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
2929smallIterationsSelectTime = time .clock ()
3030cursor .execute ("select * from perf_test" )
3131cursor .fetchall ()
3232smallIterationsSelectTime = 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"""
3636cursor .execute (dropTable )
4242connection .commit ()
4343largeIterationsInsertTime = 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
5151cursor .fetchall ()
5252largeIterationsSelectTime = 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
5656if largeIterationsInsertTime > smallIterationsInsertTime * 1000 :
5757 print ("Insert is too slow!" )
You can’t perform that action at this time.
0 commit comments