Documentation
¶
Overview ¶
Command bench load-tests the in-process JSX->PDF render. It renders a multi-page offer/appointment letter with a full-page letterhead, embedded fonts, inline runs and a compensation table, and reports the latency distribution, throughput, failures, and peak RSS.
The template is compiled once (the warm path) and then rendered REQUESTS times at CONCURRENCY. Run it inside a resource-capped container (fractional vCPU, capped memory, swap disabled) via bench.sh, which captures peak memory — the numbers that size a production deployment.
REQUESTS=30 CONCURRENCY=1 ./waffle-bench # reads ./appointment.jsx + ./assets
Click to show internal directories.
Click to hide internal directories.