Ghostdriver实际性能提升 [英] Ghostdriver actual performance gain

查看:89
本文介绍了Ghostdriver实际性能提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从FirefoxDriver切换到了GhostDriver.

I've recently switched from FirefoxDriver to GhostDriver.

我的测试套件(大约150个端到端测试)过去需要25分钟才能运行.现在,使用Ghostdriver只需23分钟.因此,总计我已经获得了2分钟的运行时间.

My test suite (roughlty around 150 end to end tests) used to take 25 minutes to run. Now with Ghostdriver it's taking 23 minutes. So in total I've gained 2 minutes of run time.

这是一个进步,但没有我预期的那么大.如此低的增益正常吗?还是我应该期望从切换到无头测试运行程序所需的削减时间更长?

It's an improvement but not as huge as I would've expected. Is such a low gain normal ? Or should I expect a much higher cut down time from switching to an headless test runner ?

我正在使用.NET版本的webdriver/ghostdriver.

I'm using the .NET version of webdriver/ghostdriver.

我真的很想将这个基准"与最近切换到GhostDriver的任何人进行比较

I'd be really interested to compare this "benchmark" with anyone having recently switched to GhostDriver

推荐答案

与ChromeDriver相比,GhostDriver不会提供任何性能提升,因为它唯一没有做的就是在屏幕上渲染图形,而Chrome使用图形驱动程序来做,并且不是CPU.

GhostDriver won't offer any performance gain over ChromeDriver as the only thing it is not doing is rendering the graphics on the screen which Chrome does using a graphics driver and not the CPU.

我看到的唯一好处是不会弹出浏览器窗口,也可能不会在CI服务器上运行时弹出

The only benefit I see is not popping up a browser window and maybe when running on a CI server.

我的博客上有一些测试运行统计信息:

Some stats on my test run are on my blog: http://watirmelon.com/2013/02/05/watir-webdriver-with-ghostdriver-on-osx-headless-browser-testing/

这篇关于Ghostdriver实际性能提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆