简体   繁体   English

将VirtualBox(Ubuntu)与实际Ubuntu进行比较

[英]Comparing VirtualBox(Ubuntu) with Actual Ubuntu

I am having Window 7 OS with Virtual Box which has Ubuntu . 我的Windows 7操作系统带有带有Ubuntu的Virtual Box。 When i am executing the code in Virtual box it takes 5.9sec . 当我在“虚拟”框中执行代码时,它需要5.9秒。 When i am executing the same code on actual ubuntu OS it takes 2.9sec. 当我在实际的ubuntu操作系统上执行相同的代码时,它需要2.9秒。 I have checked CPU info .In Virtual Box it gives CPU Speed 2968.448 MHZ and on actual ubuntu OS it gives 1600 MHz. 我已经检查了CPU信息。在Virtual Box中,它给出了CPU速度2968.448 MHZ,在实际的Ubuntu OS上它给出了1600 MHz。

Can anybody pls explain the reason for this? 有人可以解释原因吗?

Cpu speed is of course not everything there is to execution of code. 当然,CPU速度并不是执行代码的全部。 There is big probability that ubuntu downclocks the processor when it's not using it to save battery. 当不使用ubuntu处理器以节省电池时,它很有可能会降低其时钟频率。

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. 也许可以帮助您提高性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM