I am having Window 7 OS with Virtual Box which has Ubuntu . When i am executing the code in Virtual box it takes 5.9sec . When i am executing the same code on actual ubuntu OS it takes 2.9sec. I have checked CPU info .In Virtual Box it gives CPU Speed 2968.448 MHZ and on actual ubuntu OS it gives 1600 MHz.
Can anybody pls explain the reason for this?
Cpu speed is of course not everything there is to execution of code. There is big probability that ubuntu downclocks the processor when it's not using it to save battery.
open terminal, paste this and hit enter
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
Maybe this helps you for increasing your performance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.