Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BastianSchur's avatar

Laravel:dusk is very slow

Hi,

i'm using laravel 5.5 with Dusk 2.* for browser tests. But the test's a very slow, so before one(!) tests starts, it takes ~ 10 seconds until the tested url is called. This problem is on the start of every single test!

I've debugged the code and found the problem: vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:280: "$raw_results = trim(curl_exec($this->curl));" The first curl request goes to "http://localhost:9515/session" and this tooks a looot of time! After this request is succeded the next requests go faster!

Is there anything i can do to improve my performance?

Greetings

Bastian

0 likes
3 replies
BastianSchur's avatar

Thanks for this feedback, i will give it a try.

But still i want to find out what the problem is - I can't belive 10seconds for a simple browser-test is normal. After some more debugging i found out that start the chrome-driver manually brings 50% speed up. But i don't understand why!

Please or to participate in this conversation.