Page 1 of 1

performance stability

Posted: 16. Jun 2010, 17:12
by sunmat
Hello,

I'm using a simple Ubuntu distribution on my Virtuabl Box for work. My underlying host system is MacOSX snow leopard.
For some research I have a code that can use 2 different libraries (one is made by me) and I would like to compare the speed of each version.
Can I rely on the Virtual Box stability for time measurement? Do I risk to add a big error due to the use of Virtual Box?
Is there a way to configure Virtual Box so it use ever the same amount of CPU resources?

Thanks

Matthieu

Re: performance stability

Posted: 20. Jun 2010, 17:33
by Technologov
timers inside VMs are not 100% correct.

You can try using hand watch, or some timer located on Host OS.
For hand watch - you test must be relatively long - more than a minute.