Add criterion and Python benchmark baselines for doeff-vm#326
Open
Add criterion and Python benchmark baselines for doeff-vm#326
Conversation
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.
Summary
benchmarks/benchmark_runner.pythat validates results and writes JSON/CSV artifactscriterionbenchmark forpackages/doeff-vmcoveringmodule_runandpyvm_freshbaseline casesmake bench-python/make bench-vm, a benchmark README, benchmark artifact ignores, and smoke tests for the Python benchmark runnerVerification
uv run pytest tests/test_benchmark_runner.py packages/doeff-vm/tests/test_package_exports.py packages/doeff-vm/tests/test_pyvm.py::test_module_level_run_basic6 passed in 0.20smake bench-python BENCH_PYTHON_ARGS='--runs 3 --iterations 4 --output-dir benchmarks/results/smoke'public_run:pure: runs=3 iterations=4 | min=0.16ms median=0.17ms mean=0.17ms max=0.19mspublic_run:state: runs=3 iterations=4 | min=0.63ms median=0.64ms mean=0.65ms max=0.66mspublic_run:state_writer: runs=3 iterations=4 | min=0.96ms median=1.00ms mean=0.99ms max=1.01msbenchmarks/results/smoke/doeff_vm_benchmark_results.jsonbenchmarks/results/smoke/doeff_vm_benchmark_results.csvmake bench-vm BENCH_VM_ARGS='--sample-size 10 --measurement-time 0.1 --warm-up-time 0.1 --noplot'doeff_vm_baseline/module_run/pure time: [31.529 µs 34.816 µs 37.774 µs]doeff_vm_baseline/pyvm_fresh/pure time: [30.211 µs 31.943 µs 34.707 µs]doeff_vm_baseline/module_run/state time: [2.6103 ms 2.6416 ms 2.6787 ms]doeff_vm_baseline/pyvm_fresh/state time: [2.5980 ms 2.6341 ms 2.6877 ms]doeff_vm_baseline/module_run/state_writer time: [4.2105 ms 4.6090 ms 5.1725 ms]doeff_vm_baseline/pyvm_fresh/state_writer time: [4.1763 ms 4.3576 ms 4.6610 ms]packages/doeff-vm/target/criterion/doeff_vm_baseline/...uv run ruff check benchmarks tests/test_benchmark_runner.pyAll checks passed!Issue
vm-perf-bench