I had found C code to be around 150x faster than Matlab for my implementation of the Monte Carlo code in Matlab.
User time: 3 sec for the C program
elapsed_time = 453.2500 sec for the Matlab program
This stackoverfloe discussion has some interesting points to make - use Matlab first to get correct results, then increase speed with C, beware of errors in C libraries.User time: 3 sec for the C program
elapsed_time = 453.2500 sec for the Matlab program
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment