Repository navigation
Profile benchmarks with pyinstrument and benchmark the full zip listing - #1660
Closed
danlamanna wants to merge 3 commits into
Closed
danlamanna wants to merge 3 commits into
danlamanna wants to merge 3 commits into
Conversation
The zip download benchmarks only ran as an anonymous user, so the largest listing they measured was the public subset. The whole-archive download, which only staff can request, is the one that scales worst.
…ment The profile is of one call of the benchmarked function, taken before the timed rounds, and written as html and text named after the test.
Setting it adds that many TBP tiles on top of the fixed dataset, in a few huge cohorts like production, and keeps them in their own template database. With 1,000,000 tiles the dataset takes about 13 minutes to generate and 3.4 GB.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Benchmark harness changes from profiling the zip download file listing, separate from the listing fix itself.
everything_as_staffsearch. They only ran as an anonymous user before, so the largest listing they measured was the public subset (46K of the 100K images). The whole-archive download, which only staff can request, is the one that scales worst.--profile-dir=DIRwrites a pyinstrument profile (html and text) of one call of each benchmarked function, taken before the timed rounds. Theprofiledependency group is installed in the benchmark env for it.BENCHMARK_EXTRA_IMAGES=Nadds N images on top of the fixed dataset, with the fixed dataset's mix of cohorts, patients, lesions and metadata, in cohorts of their own, kept in a template database of their own.Example:
BENCHMARK_EXTRA_IMAGES=1000000 uv run tox -e benchmark -- -k "zip_download and file-listing" --profile-dir=.benchmarks/profilesBecause
dataset.pychanged, the next benchmark run (including CI) generates a new template database for the base dataset.