Tag: php
All the articles with the tag "php".
-
One mutex for every row: mysqlnd statistics in thread-based PHP
In thread-safe PHP builds, mysqlnd locks a process-wide mutex on every statistics update. How it showed up, what it costs FrankenPHP with MySQL depending on the load and on where the threads run, and a patch with relaxed atomics that keeps the statistics and brings their cost down from 7–91% 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.