Demo the performance impact of using cython on numpy code
python setup.py build_ext --inplace
python main.py
built in numpy function
0.0043 ± 0.0010 (msec)
modified cython function
0.0211 ± 0.0007 (msec)
python function
4.0440 ± 0.4269 (msec)
unmodified cython function
3.3301 ± 0.0504 (msec)