Re:Headless mode in Firefox
by xexers on Wednesday August 30, 2017 @09:45AM
(#15132065)
Does anyone have any metrics on headless vs headed browser testing? Can you say headless is 25% faster and 20% more reliable? What is the sales pitch for headless browsers for UI automation?
[ Parent
| on HN ]
Don't know about performance numbers, but one reason for headless browsers is so that you can run your tests on cheap small headless Linux servers.
Re:Headless mode in Firefox
by sacheendra on Wednesday August 30, 2017 @10:02AM
(#15132198)
Adding to ^. You don't need to have the Xorg stuff running to run tests.
That's what Xvfb is for.
"xvfb-run firefox" and "firefox -headless" should be functionally equivalent. But I would still be interested in performance comparison with numbers.
Doesn't xvfb still just run an Xserver, simply without painting? Or do headless Chrome and Firefox still require an X server running too?
You're right, there is a difference.
I meant equivalent from the point of view of the user who wants to run tests, not on the way they work internally.
Re:Headless mode in Firefox
by jacobsenscott on Wednesday August 30, 2017 @02:25PM
(#15134642)
I don't have numbers handy, but I didn't notice any significant performance difference between headless and headed chrome. I think the main benefit of headless is ease of test server setup. We use a CI service, so that's not a factor.
We are sticking with phantomjs for now because it is significantly faster than chrome for our tests.