perf: add and harden synthetic scale-test suite#3038
Open
Arths17 wants to merge 6 commits intofacebook:mainfrom
Open
perf: add and harden synthetic scale-test suite#3038Arths17 wants to merge 6 commits intofacebook:mainfrom
Arths17 wants to merge 6 commits intofacebook:mainfrom
Conversation
…hon-312.pyc modified: tests/perf/scale_test/generate_stress_test.py
deleted: tests/perf/scale_test/__pycache__/service_mesh.cpython-312.pyc
There was a problem hiding this comment.
Pull request overview
Adds a synthetic, generator-driven Python “scale test” workload under tests/perf/scale_test to stress Pyrefly indexing/type-solving performance, plus contributor-facing documentation for running/regenerating the suite.
Changes:
- Introduces a deterministic generator script to produce a dense import mesh, deep inheritance chains, and heavily-typed service/protocol APIs.
- Checks in the baseline (“core-only”) generated modules for immediate use.
- Adds
tests/README.mddescribing the perf suite structure and cross-platform invocation guidance.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/README.md | Documents the synthetic perf suite, how to run the generator, and expected outputs. |
| tests/perf/scale_test/generate_stress_test.py | Generator for producing the synthetic module graph and baseline core modules. |
| tests/perf/scale_test/init.py | Package initializer exporting the baseline core modules. |
| tests/perf/scale_test/base_types.py | Checked-in generated core module used as baseline perf workload input. |
| tests/perf/scale_test/data_layer.py | Checked-in generated core module used as baseline perf workload input. |
| tests/perf/scale_test/service_mesh.py | Checked-in generated core module used as baseline perf workload input. |
| tests/perf/scale_test/domain_models.py | Checked-in generated core module used as baseline perf workload input. |
| tests/perf/scale_test/orchestration.py | Checked-in generated core module used as baseline perf workload input. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
For the reviewer: Although the line count is large (+13k), 99% of this PR consists of generated Python modules under I recommend focusing your review on:
Everything else is synthetic data for benchmarking the indexing engine. |
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
tests/perf/scale_testtests/README.mdportable for public contributors (cross-platform Python invocation guidance)__pycache__bytecode artifacts from the stress-test packageValidation
python3 test.py --no-test --no-conformance --no-jsonschemapython -m py_compile tests/perf/scale_test/generate_stress_test.pyruff,flake8,autopep8)Notes