Skip to content

MysqliStmtWrapper was not timing executes individually, but cumulatively. - #14

Open
itoolsTim wants to merge 1 commit into
mainfrom
bugfix/cumulative-time-instead-of-execute-time
Open

MysqliStmtWrapper was not timing executes individually, but cumulatively.#14
itoolsTim wants to merge 1 commit into
mainfrom
bugfix/cumulative-time-instead-of-execute-time

Conversation

@itoolsTim

Copy link
Copy Markdown

MysqliStmtWrapper was not resetting start time between executions leading to a cumulative time being measured instead of a single execution. No documents refer to this being cumulative. Ideally callers would simply sum up single executions (as outlined for debug footer which does the totals). This also is documented as being single runs in QueryLog.php:79 and all per-query in Connection.php:119, DB.php:100, ConnectionInternals.php:1446.

Test included. All tests pass.

…ely. Moved $startTime into execute with microtime(). Added test for this change. All passed.
@itoolsTim
itoolsTim requested review from daveedis and a lite review from Copilot and removed request for Copilot August 26, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants