Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am measuring time of a computer operation. The operation should run roughly same time each time I measure it. How many times should I measure it to get good average and standard deviation?

share|cite|improve this question

closed as off topic by David Z May 17 '13 at 23:14

Questions on Physics Stack Exchange are expected to relate to physics within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Reposted at… – Bogdan0x400 May 17 '13 at 17:04

It depends a lot on the precision that you want to achieve on your measurement. As standard, it is considered that with 10 times that you run the operation it should be enough. But to know clearly the times that you need to run the operation, just check the standard deviation. With a few times, say 5, it is large but it goes down as you add more runs to the statistics. You should be able to observe the decrease on the value of the standard deviation every 5 times you run the calculation.

share|cite|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.