Compare

mail@pastecode.io avatar
unknown
python
2 years ago
298 B
6
Indexable
Never
import time

from numba import jit # pip install numba

@jit
def main():
    for raund in range(0, 1000):
      myList = []
      for aLength in range(0, 1000000):
        myList.append(1)

start = time.time()
main()
timeSpent = time.time() - start

print("Time spent: ", timeSpent)