-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰 Bug]: Performance regression of Selenium 4.4 #10984
Comments
@OndraM, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Looking at the logs for this... Not sure if it matters, but 4.3 doesn't have any of these
I threw the logs into gists for easier parsing: |
also happens to me on 4.3.0 |
So while comparing the changes between 4.3.0 and 4.4.0 I noticed that the This exactly matches the delay observed in the issue which is always around 15s So just for fun I set the So for now using |
So will In the mean time, can |
@brondsem you can provide it with the SE_OPTS environment variable |
Thanks for reporting this. In Docker you can set the value through |
I don't think modifying session-retry-interval addresses the speed discrepancy between 3.141 and 4.x |
Why not? |
This particular issue is about the specific change made in 4.4 that increased time for |
@diemol when will be the fix available please? |
We're going to try to get a patch release out tomorrow. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Hi, I upgraded Selenium server to 4.4, and now I constantly get 5x or even over 20x performance decrease in comparison to 4.3.
This happens on our Github Actions build, and is even more significant on my local Linux machine (without Docker).
This is a typical result for set of ~15 tests ( = 15 new session requests followed by few simple commands) on GH Actions:
Locally, the difference much more significant: from 5 seconds with 4.3.0 to 2 minutes with 4.4.0 (24x slower).
The test run is: https://github.com/OndraM/php-webdriver/actions/runs/2943219537
From what I noted from the Selenium log, with version 4.4, there is always a big delay before line
Session request received by the Distributor
, for examplenote the 15 seconds of no logged operation. While with 4.3.0 the events follow almost instantaneously, for example:
For the tests, PHP language bindings for WebDriver are used - but the handshake and everything should be W3C WebDriver compatible, and was working OK with Selenium 4.3.0.
Please let me know if I can provide any more information or somehow help tracing the issue.
How can we reproduce the issue?
Run Github actions on branch https://github.com/OndraM/php-webdriver/tree/test/selenium-4-performance
Or run locally:
git clone -b test/selenium-4-performance git@github.com:OndraM/php-webdriver.git
cd php-webdriver/
composer install
java -jar selenium-server-4.4.0.jar standalone
php -S 127.0.0.1:8000 -t tests/functional/web/
vendor/bin/phpunit --filter WebDriverByTest -v --debug
Relevant log output
I enabled the finest log level, here are the test runs:
(Selenium server output is dumped at the end, in the "Prints log" part - search for
cat ./logs/selenium-server.log
)Operating System
Ubuntu (Github Actions), Arch (locally)
Selenium version
4.4.0 (jar server), php-webdriver 1.12.1
What are the browser(s) and version(s) where you see this issue?
Chrome 104 (headless)
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver 104.0.5112.79
Are you using Selenium Grid?
4.4.0 in standalone mode
The text was updated successfully, but these errors were encountered: