best way to measure time

I am comparing serial and parallel solutions for the same algorithms and I was thinking what is the best way to measure the running times? I was using something like:


$ time ./helloworld


but I am not sure this is the best way. is it more useful to use <ctime> and only measure the loops running time? I know there is overhead in memory allocations/transfers and in threads creating so what would you consider a most beneficial (and fair) measuring?

Posted on Mar 15, 2013 9:43 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

best way to measure time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.