Registered Member
|
I am trying to compare the Eigen product of two matrices with my implementation of the product of two matrices.
In my outer loop I am calling:
I'm calling each about 10M times to get a fair benchmark. It's taking the method using my product 2.71s and taking the Eigen version 4.587s. The answers are exactly the same for all of my test cases so I'm assuming they are working similarly. Is this expected or am I doing something wrong? PC Vitals: Win XP SP3 VS 2010 Core i7
|
Moderator
|
that's strange, make sure you benched in "release" mode, i.e., with the optimization enabled. If you have a small self contained test (i.e., with the /*correct stuff here*/ replaced by true code), I could try it myself with GCC to see if that comes from MSVC.
|
Registered Member
|
Ok I have posted the exact code used to create this output:
https://gist.github.com/1084757 Using Spline#cubic
Using Spline#cubicEigen
@ggael, So Eigen is faster, WAAAAY FASTER, as I was hoping. I'm sorry for wasting your time. My solution method was to delete everything, checkout my code, and recompile. Once I did that the speed difference became apparent. Just thought I would post the "final" Eigen code so that if anyone needed it they could use it for reference. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]