I think Laravel Dusk is simply a bit slow.
Some poeple find the Browserkit Testing package that was present in version 5.3 is still completely usable these days, you might find it's the right tool for you.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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
Please or to participate in this conversation.