Repository navigation
CodSpeed: interpreter-only, start-up and memory rows; split orjson - #23
Merged
Merged
Conversation
orjson-loads and orjson-dumps run the parsing and the serialising half of orjson-roundtrip on the same document, built by orjson-roundtrip's own make_doc, so that the two can be judged separately. Their expected results are the corresponding parts of orjson-roundtrip's. orjson-roundtrip is unchanged.
interp runs six meso benchmarks on small sizes with --experimental-options --engine.Compilation=false. The options belong to the suite, so they are also given when reporting to CodSpeed; --no-suite-options leaves them out, for comparisons with CPython, and is refused when reporting. startup is in the harness format; an iteration starts fresh processes of sys.executable with the harness process's interpreter options (from sys.orig_argv): -c pass, a fixed set of standard library imports, and a small pure Python workload run once. memory runs scripts without the harness, one fresh process per iteration, and takes the wall time and the peak RSS (wait4) of each process: idle after start-up, after the import set, and holding a million instances, dicts or short strings. Each benchmark gets a second CodSpeed result, <name>[peak-rss: 1 ms = 1 MiB], whose time is the median peak RSS of the sampled processes, constant over its rounds. walltime-summary.json keeps these under "memory", apart from the times. The driver also writes walltime-summary.md, a table of the peak RSS of every benchmark, and now reports ru_maxrss in KiB on macOS too.
The walltime job runs the three new suites after the existing ones and appends the peak RSS table to the run's summary page, also when a benchmark failed; the artifact keeps the table. The check job runs the new suites for four iterations first, so that an option the build does not know fails on the pool. The README describes the suites, the orjson rows and how to read the peak RSS rows.
Merging this PR will not alter performance1 warning
Performance Changes
Comparing |
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.
The suite measured only warmed-up peak time. This adds rows for code that is not JIT-compiled, for start-up, and for memory footprint, and splits the orjson row into parsing and serialising.
What each suite measures
interp: six meso benchmarks (richards3, bm-float, nbody3, raytrace-simple, fannkuchredux3, fasta3) on small sizes with--experimental-options --engine.Compilation=false. These options belong to the suite, so they are also used when reporting to CodSpeed. Rows areinterp/<name>[<size>], next to the compiledmeso/<name>[<size>].startup: each iteration starts fresh processes of the interpreter, with the parent's options, and waits for them:-c pass, imports of a fixed set of 12 standard-library modules, and a small pure-Python workload run once.memory: scripts run without the harness, one fresh process per iteration. The runner takes each process's wall time and peak RSS (wait4). Rows: idle after start-up, after the import set, and holding 1M small instances, 1M small dicts or 1M short strings.packages/orjson-loadsandorjson-dumps: the two halves oforjson-roundtrip, on the same document. The round-trip row is unchanged.How to read the memory rows
Every
memorybenchmark has two CodSpeed rows.memory/<name>[<size>]is the wall time of one process.memory/<name>[<size>][peak-rss: 1 ms = 1 MiB]is its peak RSS shown as a time: 300 ms means 300 MiB, and faster means smaller. The value is the median over the sampled processes and is the same in every round.walltime-summary.jsonkeeps these undermemory, apart from the times. The run's summary page lists the peak RSS of every benchmark in every suite.Known limits
benchmarks.txtand starts a new history on CodSpeed.--no-suite-optionslets you run the suites on CPython by hand. There is no CPython job yet.Testing
Each new row was run to completion with four iterations on a macOS build and on CPython; nothing was timed there. The first run on the benchmark host is the one on this pull request.
🤖 Generated with Claude Code