Skip to content

feat: add -loop N flag to cjpeg for benchmarking#452

Open
lilith wants to merge 1 commit intomozilla:masterfrom
imazen:feat/cjpeg-benchmark-loop
Open

feat: add -loop N flag to cjpeg for benchmarking#452
lilith wants to merge 1 commit intomozilla:masterfrom
imazen:feat/cjpeg-benchmark-loop

Conversation

@lilith
Copy link
Copy Markdown

@lilith lilith commented Jan 31, 2026

Adds a -loop N option that encodes the same image N times, reporting per-iteration and average timing. Useful for measuring encoder performance without process startup overhead. Similar to cjpegli --loop

Usage: cjpeg -loop 30 -quality 85 -outfile /dev/null input.ppm

Adds a -loop N option that encodes the same image N times, reporting
per-iteration and average timing. Useful for measuring encoder
performance without process startup overhead.

Usage: cjpeg -loop 30 -quality 85 -outfile /dev/null input.ppm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant