Chrome 113 poor performance with java binding on arm mac

1,623 views
Skip to first unread message

Nate Muller

unread,
May 5, 2023, 12:12:34 PM5/5/23
to ChromeDriver Users
I recently upgraded to chrome 113 and chromedriver 113 on my arm mac (m1 chip) and I'm seeing extremely poor performance when using selenium with java. Were using selenium 4.9.  I tried running a similar script in python using the same chromedriver and did not see the same performance issues.  Other team members at our company who use windows machines are not seeing this problem so it seems to specifically be related to java / m1 mac / chromedriver 113 / chrome 113.  Before updating to 113 I had no issues.

I also do not see any issues with our tests running in CI (on debian).

For an example of how bad the performance is on CI one test takes 8 seconds and on my machine it take 55 seconds.  So a pretty huge difference.

Does anyone have any idea what could be causing this or how I can debug what is going on here? 

Cristina María Ocaña Manzano

unread,
May 9, 2023, 4:22:50 AM5/9/23
to ChromeDriver Users
We're having the same issue, have you been able to figure out a solution? Thanks.

Viacheslav

unread,
May 10, 2023, 11:52:22 AM5/10/23
to ChromeDriver Users
I have the same problem using Python, it's a problem after updating chromedriver from 111 to 112, I think it is linked to this issue https://bugs.chromium.org/p/chromedriver/issues/detail?id=4419

вторник, 9 мая 2023 г. в 11:22:50 UTC+3, Cristina María Ocaña Manzano:

Sathish Kumar

unread,
May 11, 2023, 1:38:18 AM5/11/23
to ChromeDriver Users
I have the same problem in ruby with selenium webdriver(3.142.7), chromedriver(113.0.5672.63) and Chrome(113.0.5672.92). 

Vilmantas Kirda

unread,
May 16, 2023, 11:13:50 AM5/16/23
to ChromeDriver Users
Same problem. So nobody is fixing this?

sayana k

unread,
May 16, 2023, 7:50:28 PM5/16/23
to ChromeDriver Users
I am also having the same problem

Pulkit Kochar

unread,
May 17, 2023, 4:56:07 AM5/17/23
to ChromeDriver Users

Is there any fix coming? or is there any workaround?
performance is really bad on my mac m1, and it's fine on ci (debian). Delay is in clicking an element, assertions and all is fine it seems.

Yuxia Yang

unread,
May 17, 2023, 4:59:50 AM5/17/23
to ChromeDriver Users
same problem, is there any workaround?

Cristina María Ocaña Manzano

unread,
May 17, 2023, 6:33:40 AM5/17/23
to ChromeDriver Users
We were unable to find a solution, so we downgraded to version 111

James Leung

unread,
May 18, 2023, 3:21:27 PM5/18/23
to ChromeDriver Users
We are facing the same issue and was unable to find a workaround with a local chromdriver.

We ended up using Selenium Grid with a docker container hosting the server: https://github.com/seleniumhq-community/docker-seleniarm

Doing it that way even ARM machines are able to run our tests locally.
Not really a solution, but unblocked us until a new chromedriver can be released to support ARM better.

Perhaps using testcontainers might be a more seamless option, but I haven't tried it out yet: https://www.testcontainers.org/modules/webdriver_containers/

Man Badalyan

unread,
May 19, 2023, 6:56:25 PM5/19/23
to ChromeDriver Users
I also have the same problem with Python in Mac. Extremely slow.

Metaflow

unread,
May 21, 2023, 5:08:58 AM5/21/23
to ChromeDriver Users
We need to get it fixed, asap.
I've got production workloads running on Mac M1 and this bug affects the performance very strongly

anto felix

unread,
Jun 1, 2023, 12:00:54 PM6/1/23
to ChromeDriver Users
Any one found the solution for this issue, it is still happening for chrome 114 the latest version released by Chrome.

One thing noticed so not very sure if that is the issue, whenever web driver opens up the chrome, it always initiating the chrome version that supports for X86_64 instead of arm64 the compatible version for Mac M1 arch.

Any solution here is really appreciated.

Nate Muller

unread,
Jun 1, 2023, 12:20:44 PM6/1/23
to ChromeDriver Users
I opened a bug in chromedriver, I have not found any workaround.  Just been using firefox for the time being, not great.

Nate Muller

unread,
Jun 1, 2023, 12:20:57 PM6/1/23
to ChromeDriver Users

Viacheslav

unread,
Jun 2, 2023, 6:47:19 AM6/2/23
to ChromeDriver Users
https://bugs.chromium.org/p/chromedriver/issues/detail?id=4456&colspec=ID%20Status%20Pri%20Owner%20Summary%20Opened&sort=-opened
chromedriver started on x86_x64 architecture  instead of arm64, from 112 version of Chrome becoming universal binary
четверг, 1 июня 2023 г. в 19:20:57 UTC+3, Nate Muller:

Nate Muller

unread,
Jun 2, 2023, 8:06:22 AM6/2/23
to ChromeDriver Users
Viacheslav - Thank you!!  That bug lead me to the solution for my issues.  Somehow I had accidentally installed the wrong java version on my machine way back.   

When I ran - println System.getProperty("os.arch") in a java repl I would get back X86 even though I have an arm chip. 

After I uninstalled java and reinstalled the correct arm .pkg (I'm using amazon corretto 17) tests ran very quickly and work as expected again on chrome.

anto felix

unread,
Jun 2, 2023, 2:42:02 PM6/2/23
to ChromeDriver Users
Still facing the same issue even after installing amazon corretto 17 (aarch version). 

Viacheslav

unread,
Jun 6, 2023, 5:28:11 AM6/6/23
to ChromeDriver Users
uninstall the current JDK version and install the latest arm version from https://www.oracle.com/java/technologies/downloads/#jdk20-mac (without usage brew)

пятница, 2 июня 2023 г. в 21:42:02 UTC+3, felix...@gmail.com:
Reply all
Reply to author
Forward
0 new messages