Tag: performance
All the articles with the tag "performance".
-
json_encode() in php-src, autumn 2026: where the time goes and what the open pull requests change
Updated:Six open pull requests to json_encode()'s string escaping, one of them mine, measured with up to four compilers on two CPUs: where each one helps, where it hurts, and what each needs before it can land.
-
One mutex for every row: mysqlnd statistics in thread-based PHP
In thread-safe PHP builds such as FrankenPHP, mysqlnd takes one process-wide lock on every statistics update. With MySQL, FrankenPHP spends 7–32% more CPU per request than with statistics off. PHP-FPM is not affected. One php.ini line removes the cost today; a patch with atomic counters brings it to 1–3%.
-
12 web stacks on vendor defaults, PostgreSQL and MySQL: what a request costs and what the drivers change
The same JSON API in PHP, Go, Node, Rust, Java, .NET, Python and Ruby, every stack on its vendors' defaults, measured on one machine against PostgreSQL and MySQL: CPU per request, memory per waiting request, and the problems the measurement found, each with its cause and fix.