Repository navigation
Conversation
remember it once for all threads, so a host signal still reaches its handler if it lands on a different PHP thread
Contributor
Author
|
4 core workload:
Benchmarked and table generated by gpt, but I got very similar numbers in manual wrk runs, so I think it's more or less correct in the realm of local hardware not being the most stable.
cc @Girgias |
henderkes
marked this pull request as ready for review
November 24, 2026 04:49
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.
logic on master: each request creates a timer, sets time limit, deletes the timer
logic here: each thread creates a timer, each request sets time limit, then after the request sets time limit to zero. timer is reused by the next request.
this skips noticeable overhead, especially in threaded scenarios (first measurement in frankenphp ~4% for hello world), but also in NTS (if max execution timers are enabled)
FreeBSD excluded for now because of https://github.com/freebsd/freebsd-src/blob/main/sys/sys/timers.h#L65
cc @dunglas