bench

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL