benchmark

command
v0.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Command benchmark runs an automated performance verification of go-pretty-pdf across multiple book sizes. It builds the real CLI binary, renders real books through it, measures wall time / pages / throughput / live CPU-RAM of the whole process tree (including Chrome), shows an animated readout per export, and writes benchmark-report.json.

Usage:

go run ./scripts/benchmark                 # default sizes up to 3000 docs
go run ./scripts/benchmark --max 2000
go run ./scripts/benchmark --sizes 100,1000,2000 --out /tmp/bench

Jump to

Keyboard shortcuts

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