简体   繁体   English

android genymotion vs模拟器

[英]android genymotion vs emulator

Is there any benchmark tests results comparing this two emulators ? 比较这两个仿真器是否有基准测试结果?

I know that Genymotion is seems to be more faster when loading and rebooting the emulator, but is there any tests show result like, Camera, GPS, networking and etc. ? 我知道Genymotion在加载和重新启动仿真器时似乎更快一些,但是是否有任何测试显示诸如Camera,GPS,networking等结果?

Have a look here for some informal benchmark comparisons. 在这里查看一些非正式的基准比较。 However, take these with a grain of salt because benchmark scores will vary greatly depending on the host system. 但是,由于基准分数会因主机系统而有很大差异,因此请一筹莫展。

As for the items you want benchmarks for, not sure that camera/gps can even be benchmarked (what would you test), and networking is perfect since it uses VirtualBox, which has always had great virtual network support. 至于您想要进行基准测试的项目,甚至不确定是否可以对摄像机/ gps进行基准测试(您要测试什么),并且网络连接非常完美,因为它使用了VirtualBox,而VirtualBox一直具有强大的虚拟网络支持。

As a graphics/game developer, I find Genymotion unparalleled for running OpenGL code - on Genymotion it runs much smoother framerate wise, than using an x86+HAXM+HW GPU android emulator. 作为图形/游戏开发人员,我发现Genymotion在运行OpenGL代码方面无与伦比-在Genymotion上,与使用x86 + HAXM + HW GPU android模拟器相比,它在运行帧速率方面更为流畅。 Also, the integration of Google Apps/Services in Genymotion is fantastic. 而且,Genymotion中Google Apps /服务的集成非常棒。

Compatibility is the only downside, since Genymotion only provides v4.1+ images there is no way to test compatibility on older android versions - but for these tests I just use the standard android emulator (which is fine since it is not as frequent as normal testing). 兼容性是唯一的缺点,因为Genymotion仅提供v4.1 +图像,因此无法测试旧版android的兼容性-但是对于这些测试,我只使用标准的android仿真器(这很好,因为它不像平常那​​样频繁测试)。

Update : As of January 2014, Genymotion supports Android v2.3.7 as well as v4.3 (with v4.4 in preview). 更新 :从2014年1月开始,Genymotion支持Android v2.3.7和v4.3(预览中带有v4.4)。 This means it now covers all relevant android versions except Froyo (v2.2), which at this time accounts for only 1-2% of all devices :) 这意味着它现在涵盖了除Froyo(v2.2)之外的所有相关android版本,Froyo(v2.2)目前仅占所有设备的1-2%:)

I've been investigating whether to use Genymotion, with a particular focus on running automated Robotium tests. 我一直在研究是否使用Genymotion,尤其着重于运行自动化Robotium测试。

The Genymotion startup time is around 5 seconds (compared to at least 30 seconds for the Android emulator). Genymotion的启动时间约为5秒(相比之下,Android模拟器至少为30秒)。 Genymotion also runs Robotium tests visibly faster, and with a smoother UI. Genymotion还可以通过平滑的UI显着更快地运行Robotium测试。

However, be warned there are some noticable differences between Genymotion and the default Android emulators: 但是,请注意,Genymotion与默认的Android模拟器之间存在一些明显的区别:

  • You cannot use the special 10.0.2.2 IP address with Genymotion to access localhost on the machine you are running the emulator from. 您不能在Genymotion上使用特殊的10.0.2.2 IP地址来访问运行模拟器的计算机上的localhost。 This means for local tests you may need to explicitly configure the IP address of the machine the emulator should connect to. 这意味着对于本地测试,您可能需要显式配置仿真器应连接到的计算机的IP地址。
  • The difference in emulator speeds will expose timing issues in your tests. 仿真器速度的差异将暴露测试中的时序问题。 The most common one is list views needing to load their data. 最常见的是需要加载其数据的列表视图。
  • I think that some Robotium Solo utilities might behave slightly differently between Genymotion and the default Android emulators. 认为某些Robotium Solo实用程序在Genymotion和默认的Android模拟器之间的行为可能略有不同。 On Genymotion, I vaguely recall some problems with searchText(String) scrolling my screen to the bottom, even when the text I am searching for is already in view. 在Genymotion上,我隐约想起了searchText(String)将屏幕滚动到底部的一些问题,即使我正在搜索的文本已经在视图中也是如此。 However I suspect this was just another symptom of timing issues than anything being fundamentally different though (in that particular case you could always call searchText(String, true) to prevent the scrolling). 但是,我怀疑这只是计时问题的另一个征兆,尽管与任何根本不同的事物相比(在那种情况下,您总是可以调用searchText(String,true)来防止滚动)。

Use Android Emulator 使用Android模拟器

I've personally tried both and android emulator is way better. 我亲自尝试过,并且android模拟器更好。 You just have to configure the emulator right. 您只需要正确配置仿真器。

My use case is mostly to manual test things here and there and run automation tests. 我的用例主要是到处手动测试事物并运行自动化测试。 I've benchmarked them both, android emulator is faster when running tests. 我已经对它们进行了基准测试,运行测试时android模拟器更快。

Almost all the sensors are present in android emulator and you also get an awesome command line tool with it. 几乎所有的传感器都存在于android仿真器中,并且您还获得了一个很棒的命令行工具。

For more detail, check out my blog benchmarking this . 有关更多详细信息,请查看我的博客对此进行基准测试

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

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