ext/curl: speed up tests - #23228
Open
Sjord wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
@NickSdot Could you take a look at this? |
NickSdot
reviewed
Aug 12, 2026
NickSdot
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Can confirm it's ~40% faster -- nice! Added one nit.
mvorisek
reviewed
Aug 12, 2026
Sjord
force-pushed
the
curl-faster-tests
branch
from
August 13, 2026 07:46
d8dd936 to
8fc637d
Compare
LamentXU123
approved these changes
Aug 13, 2026
LamentXU123
left a comment
Member
There was a problem hiding this comment.
This looks good to me as an outsider.
devnexen
reviewed
Aug 13, 2026
devnexen
approved these changes
Aug 14, 2026
devnexen
left a comment
Member
There was a problem hiding this comment.
seems good but let s wait for another opinion I may know well enough curl C api but for tests infrastructure in general not that much, cc @iluuu1994
Contributor
Author
|
An alternative for disabling expect/continue in the tests is to implement expect/continue in the PHP development server: #23245 |
By waiting shorter for the server to be ready. In my setup, this takes it from 26 to 15 seconds for all curl tests. The first check for output on stderr takes approximately 10ms, so we wait 20ms to make sure its ready. The second check for the open port typically succeeds immediately, so move the sleep to after we have tried.
It was intentionally increased to 3 seconds in php#2304
Sjord
force-pushed
the
curl-faster-tests
branch
from
August 18, 2026 18:41
4a4d800 to
3f89765
Compare
Contributor
Author
|
I have removed the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By waiting shorter for the server to be ready. In my setup, this takes it from 26 to 15 seconds for all curl tests.
The first check for output on stderr takes approximately 10ms, so we wait 20ms to make sure its ready. The second check for the open port typically succeeds immediately, so move the sleep to after we have tried.
Disable Expect: 100-continue to prevent libcurl's 1-second delay.