tag:blogger.com,1999:blog-8885167082319491081.post8189909455900340813..comments2008-04-29T10:39:53.087-04:00Comments on digital sanitation engineering: Virtualization is faster than Native on Mac OS X 1...nickghttp://www.blogger.com/profile/04659163622120256748noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8885167082319491081.post-89448691810061841972008-04-28T12:31:00.000-04:002008-04-28T12:31:00.000-04:002008-04-28T12:31:00.000-04:00Benchmarking virtual machines is very, very tricky...Benchmarking virtual machines is very, very tricky for two reasons:<BR/><BR/>1) The virtual disk may be cached by the host operating system.<BR/><BR/>The reason your filesystem benchmark performed so well was probably because you were effectively doing it on a RAM disk: your Mac was likely caching reads and writes to the virtual disk in memory.<BR/><BR/>2) Benchmarks depend on accurate timers.<BR/><BR/>In the virtual world, time is a flexible concept. Whenever benchmarking something in a virtual machine, make sure to use a stopwatch to see how much actual time progresses when running a test. <BR/><BR/>You may be surprised to learn that a test thinks it runs for 10 minutes, but it actually takes 11 or 12 minutes of wall-clock time in some virtualized environments.Ben Gertzfieldhttp://www.blogger.com/profile/17230183837765575181noreply@blogger.com