Not sure what is going on here or if I am correctly using Numba, but the speed here is not coming in as desired; please let me know what I am missing to get numba to work the way it should.
Outputs show runfile('#####) : Numba-> 0.14654635999977472 :Python-> 0.00047117299982346594
import timeit from numpy import log, exp from numba import jit
@jit(nopython=True) def Func(): n=100 b=[] for i in range(0,n): b.append(log((i/2+52)**2)*exp(.05*10)) return(i) print(timeit.timeit(Func,number=100)) def Func2(): n=100 c=[] for j in range(0,n): c.append(log((j/2+52)**2)*exp(.05*10)) return(j) print(timeit.timeit(Func,number=100))
Func2: you can useFunc.py_functo access the uncompiled python function.