mirror of https://github.com/exaloop/codon.git
12 lines
247 B
Python
12 lines
247 B
Python
|
# https://towardsdatascience.com/getting-started-with-pypy-ef4ba5cb431c
|
||
|
import time
|
||
|
t1 = time.time()
|
||
|
nums = range(50000000)
|
||
|
sum = 0
|
||
|
for k in nums:
|
||
|
sum = sum + k
|
||
|
print("Sum of 50000000 numbers is : ", sum)
|
||
|
t2 = time.time()
|
||
|
t = t2 - t1
|
||
|
print(t)
|