Conversation
Add 10 benchmark tests covering parsing, remediation, and iteration performance with 500-interface configs. Benchmarks are skipped by default via pytest marker; run with: poetry run pytest -m benchmark -v -s Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Increase default config generators to 1000 interfaces (~10k lines). Add benchmark execution and analysis guidance to CLAUDE.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ocstring - Remove unused _TARGET_LINES constant - Relax fast_load_vs_get_hconfig assertion to allow 10% CI variance - Fix docstring: 50/1000 interfaces is ~5%, not ~10% Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
get_hconfigandget_hconfig_fast_loadwith ~10,000-line IOS and XR configsconfig_to_get_towith small diff (10%), large diff (100%), and completely different configsall_children_sorted,dump_simple, anddeep_copyon large treespytest.mark.benchmarkmarker withaddopts = "-m 'not benchmark'"inpyproject.tomlpoetry run pytest -m benchmark -v -sBenchmark Results
Test plan
poetry run pytest -m benchmark -v -s— all 10 benchmarks passpoetry run ./scripts/build.py lint-and-test— full suite passes (benchmarks excluded by default)🤖 Generated with Claude Code