Cobra Programming Language
Downloads
Documentation
How To
Samples
Discussion
Wiki
Contact
Wiki
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Back to RunTimePerformance
Login
Preferences
Help/Guide
About Trac
RunTimePerformance
: perfTest.py
File perfTest.py,
237 bytes
(added by torial,
8 years
ago)
python version
Line
1
from
time
import
clock
2
x
=
0
3
start
=
clock
()
4
for
i
in
range
(
200
):
5
for
j
in
range
(
200
):
6
for
y
in
range
(
200
):
7
x
=
x
+
i
+
j
+
y
8
duration
=
clock
()
-
start
9
10
print
(
'duration:
%s
seconds with total
%s
\n\n
Done...'
%
(
duration
,
x
))
Download in other formats:
Original Format