This repository has been archived by the owner. It is now read-only.

Chrome driver weirdly slow (sleeps?) #1294

Closed
lukeis opened this Issue Mar 2, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1294

Tests run much slower on the Chrome browser than on Firefox.

In Chrome, WebDriver uses only about 20-30% CPU and, looking at it, seems to frequently
sleep for a fraction of a second.  It thus takes more than twice as much time as Firefox
for the same test suite.

I'm running Selenium 2 through Ruby's selenium-webdriver (0.1.3.dev) and capybara (edge)
on Linux/tightvncserver.  Inside the remote-controlled Chrome browser, it says WebDriver
extension version 1.9.17.
(This also happened with the previous version of the selenium-webdriver Ruby gem, so
it doesn't seem to be a new bug.)

Does this only happen on my system, or can other people reproduce it?

If this is not just my setup having a problem, then I'll mention that IMVHO it's really
a shame that the Chrome driver is so slow.  Chrome feels very fast on my desktop, so
I'd expect it to be the platform of choice for running browser tests.  I've also documented
this here, by the way:
http://opinionated-programmer.com/2011/02/selenium-2-0-webdriver-firefox-vs-chrome/

Reported by joliss42 on 2011-02-13 02:07:48

@lukeis

This comment has been minimized.

Copy link
Member

lukeis commented Mar 2, 2016

The Chrome driver is in the process of being rewritten as part of the Chromium tree:

  http://src.chromium.org/viewvc/chrome/trunk/src/chrome/test/webdriver/

We won't prioritize working on the performance of the current driver. If you want to
dig in and create a patch, I'd be happy to merge it though.

Reported by jari.bakken on 2011-02-13 12:01:52

  • Status changed: WontFix
  • Labels added: Component-WebDriver, Browser-Chrome
@lukeis

This comment has been minimized.

Copy link
Member

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:11:56

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this Mar 2, 2016

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.