← All posts

Tag

Performance

6 posts

PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%
PHPPerformanceDockerLaravelSymfony

PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%

php:8.6-fpm is built thread-safe and php:8.5-fpm is not. Laravel and Symfony on php-fpm, php-cgi, FrankenPHP and the CLI, on an x86_64 server and an arm64 Mac: 1.5 to 2.6% fewer requests per second, all of it the build. Sliders, a fleet calculator and the 70% result I threw away.

November 26, 202648 min read
Read post
How Big an LLM Can a 1 GB Raspberry Pi 4 Run? Measured
AILLMPerformance

How Big an LLM Can a 1 GB Raspberry Pi 4 Run? Measured

On a Raspberry Pi 4 with 1 GB of RAM, Qwen2.5 0.5B generated 8.3 tokens per second and Llama 3.2 1B 0.13. The 1B file does not fit, so the Pi rereads it from the SD card for every token. What moved the line, what did not, and what a 3-bit file costs in answers.

November 11, 202610 min read
Read post
Small Language Models at the Edge: 1,000 Tickets on a Mac, a Thin Client and n8n
AILLMPerformanceEvaluation

Small Language Models at the Edge: 1,000 Tickets on a Mac, a Thin Client and n8n

I sent 1,000 support tickets to Llama 3.2, Qwen 2.5 and the Apple Foundation Model on a Mac and a thin client, behind n8n, and to Claude Haiku. Constrained decoding made every local answer valid JSON; the best local model got all four fields right on 37% of the tickets, the cloud on 100%.

November 9, 202622 min read
Read post
The Boundary in Laravel: FormRequest Is Not a DTO
PHPLaravelArchitecturePerformance

The Boundary in Laravel: FormRequest Is Not a DTO

Laravel already enforces two of the five boundary rules and breaks the other three. Deptrac covers the layers, five reflection checks cover what it cannot see, and the measured price is not the mappers — it is the validators that hit the database.

October 21, 202618 min read
Read post
DTO-First: The Boundary Decides What the Domain Sees
PHPSymfonyArchitecturePerformance

DTO-First: The Boundary Decides What the Domain Sees

DTO-first is advice until something enforces it. Five boundary rules, each checked by a gate that fails the build — and the measured price of the doctrine: the mappers cost half a microsecond, and one validator constraint costs more than all the others together.

October 20, 202621 min read
Read post
PHP 8.6: every feature, before and after
PHPToolingPerformance

PHP 8.6: every feature, before and after

PHP 8.6 removes ceremony: a placeholder instead of a lambda, a default instead of a constructor body, a Duration instead of an int. Every change here is measured on 8.5 and 8.6 — including the optimisations that did not reproduce and the one shape that got slower.

October 14, 202630 min read
Read post