Ghostdriver实际性能提升

编程入门 行业动态 更新时间:2024-10-21 09:30:39
本文介绍了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.

我的博客上有一些测试运行统计信息: watirmelon/2013/02/05/watir-webdriver-with-ghostdriver-on-osx-headless-browser-testing/

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

更多推荐

Ghostdriver实际性能提升

本文发布于:2023-10-29 03:46:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538631.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性能   Ghostdriver

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!