Also, a good reference point to compare performance to is math libraries, like eigen/mtl/ibm essl or something like that.