Repository navigation
docs: a performance model for devices we do not have - #160
Merged
Merged
Conversation
Add scripts/perf_model.py, which fits time = fixed + per_pixel x megapixels on the M3 Max from the C API runs of release 0.11.0 and scales the per-pixel term by memory bandwidth to estimate other chips. The iPhone 17, measured the same way, checks it: the model reads 6 to 16 % above its measurements, so the table is no better than 15 %. - BENCHMARKS.md gains "Estimates for other devices": a table kept apart from the measurements and marked as estimated, with its basis, its check and its limits. `perf_model.py --write` rewrites the table. - Paced decoding (the GPU's power states) is not modelled and stays measured (#81). - ARCHITECTURE.md records the choice as D71. Refs #159. Claude-Session: https://claude.ai/code/session_019fJGoCTvP5e7n599q3ZQ42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Say roughly what a decode or an encode costs on devices we cannot measure, without asking for the user's phone each time (#159).
Summary
scripts/perf_model.py(standard library only) fitstime = fixed + per_pixel x megapixelsfor decode to planes, decode to RGB and encode on the M3 Max, from the C API runs of release 0.11.0 (2026-10-26 and 2026-10-27), and scales the per-pixel term by memory bandwidth for other chips.--markdownprints the table,--write BENCHMARKS.mdfills it between the file's markers.What the numbers say
How to test
Documentation and a script only: no library code changes, so no benchmark impact.
Refs #159.