← Graph

Phlex is only faster than ERB at scale

takeaway 3 connections

Joel Drapper's clarification of a widely cited benchmark: Phlex actually does more work than ERB to render a single HTML tag, so claims like 'Phlex is 12× faster than ERB' (still on the Ruby UI website) are misleading. Where Phlex wins decisively is on pages with thousands of partials/components — because ActionView has to find and compile each partial file, its overhead grows quickly, while Phlex's per-component overhead stays tiny. On a modern machine (M4, single core) Phlex rendering will saturate a network connection before the CPU, so the performance question is usually moot.

type
insight
takeaway Phlex is only faster than ERB at scale
about
Phlex tool
Concerns the performance characteristics of Phlex vs ActionView/ERB.
takeaway Phlex is only faster than ERB at scale
about
Phlex's advantage grows with the number of partials/components because ActionView partial lookup dominates.
takeaway Phlex is only faster than ERB at scale
from_talk
Joel Drapper's on-stage correction of a well-known Phlex-vs-ERB benchmark.

Provenance

Read by
4 extractions