With --d:release flag,
    
    
    nim c --opt:speed --d:release --app:lib --out:nimpy_numpy.so nimpy_numpy
    
    
    Run

It is now faster than NumPy.

processing time:

numpy: 0.6880900859832764

nim: 0.5004160404205322

Reply via email to