repl.it
@nmakry/

nmakrytest

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import numpy, sys, time

SIZE = 100000

L1 = range(SIZE)
L2 = range(SIZE)

N1 = numpy.arange(SIZE)
N2 = numpy.arange(SIZE)

start = time.time()
result = [(x+y) for x,y in zip(L1, L2)]

print((time.time()-start)*1000)

start = time.time()
N = N1+N2
print((time.time()-start)*1000)

Fetching token
?