Wiki

RunTimePerformance: perfTest.py

File perfTest.py, 237 bytes (added by torial, 7 years ago)

python version

Line 
1from time import clock
2x=0
3start = clock()
4for i in range(200):
5    for j in range(200):
6        for y in range(200):
7            x =x+ i+j+y
8duration = clock() - start
9
10print('duration: %s seconds with total %s\n\nDone...'%(duration,x))