>Please do share your test and summarize your testing results here or on the patch itself when you have it. If you need help setting up the test harness, just ask. We >seem to end up writing a quick test harness for something ever week. :)I have already implemented and tested the algorithm with patch already on sf [https://sourceforge.net/p/brlcad/patches/216/ here]. Well i need some assistance in setting up the test and returning the results for both. But patched in the code and performed a benchmark test which returned all results correct.
When I talked about writing a test, I meant literally writing something like:
int
main(int ac, char *av[])
{
int i;
mat_t m;
for (i=0; i<123123; i++) {
m = some random matrix;
call bn_mat_determinant(mat);
}
}
And then you can time that with something like "time ./a.out" and just keep increasing that 123123 loop until time shows that it's taking 30-60 seconds. Run it a few times until the numbers are stable, then change bn_mat_determinant to yours and compare. That'll demonstrate the performance impact.
Then to test correctness, you can do the same loop, but call both bn_mat_determinant() and yours, compare the result and make sure they're the same.
This isn't going to be production code, this is quick and dirty to proof it's right/better. It's a good habit to learn how to write and compile little main() programs on the fly.
Cheers!
Sean
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
