Add two-run pattern for video_transcode_bench timed mini to reduce runtime#601
Open
marziehlenjaniMeta wants to merge 1 commit intofacebookresearch:v2-betafrom
Open
Conversation
…ntime Summary: The video_transcode_bench_svt_timed_mini benchmark takes ~36 seconds wall-clock, but only ~15 seconds is actual encoding. The remaining ~19 seconds is spent downscaling all 42 source clips to target resolutions — a data preparation step, not representative of production workloads. This diff introduces a two-run pattern (similar to DjangoBench and SparkBench mini) that separates preparation from measurement: - video_transcode_bench_svt_timed_mini_prep: Downscales a sampled subset of clips (20%, ~8 clips) and caches them in resized_clips/ for reuse. After this run, the ~42GB source dataset can be deleted to reduce OS image size. - video_transcode_bench_svt_timed_mini_reuse: Skips downscaling entirely, reuses cached resized_clips/, and runs only the encoding workload. Errors if the cache doesn't exist. Can be run repeatedly. Additional changes: - Split the generated run script so downscaling runs during preprocessing (tracked as a downscaling sub-operation in breakdown.csv), and only encoding runs during main_benchmark - Replaced the sleep+SIGTERM time-limiting mechanism in timed_parallel_feeder.sh with a deadline-based feeding loop that stops dispatching jobs after max_time - Reduced max_time from 15 to 10 seconds for both new variants - Added --skip-downscale and --keep-downscaled flags to run.sh - Updated README with two-run pattern instructions Differential Revision: D102686096
|
@marziehlenjaniMeta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D102686096. |
meta-codesync Bot
pushed a commit
that referenced
this pull request
Apr 29, 2026
…ntime (#601) Summary: Pull Request resolved: #601 The video_transcode_bench_svt_timed_mini benchmark takes ~36 seconds wall-clock, but only ~15 seconds is actual encoding. The remaining ~19 seconds is spent downscaling all 42 source clips to target resolutions — a data preparation step, not representative of production workloads. This diff introduces a two-run pattern (similar to DjangoBench and SparkBench mini) that separates preparation from measurement: - video_transcode_bench_svt_timed_mini_prep: Downscales a sampled subset of clips (20%, ~8 clips) and caches them in resized_clips/ for reuse. After this run, the ~42GB source dataset can be deleted to reduce OS image size. - video_transcode_bench_svt_timed_mini_reuse: Skips downscaling entirely, reuses cached resized_clips/, and runs only the encoding workload. Errors if the cache doesn't exist. Can be run repeatedly. Additional changes: - Split the generated run script so downscaling runs during preprocessing (tracked as a downscaling sub-operation in breakdown.csv), and only encoding runs during main_benchmark - Replaced the sleep+SIGTERM time-limiting mechanism in timed_parallel_feeder.sh with a deadline-based feeding loop that stops dispatching jobs after max_time - Reduced max_time from 15 to 10 seconds for both new variants - Added --skip-downscale and --keep-downscaled flags to run.sh - Updated README with two-run pattern instructions Reviewed By: YifanYuan3 Differential Revision: D102686096 fbshipit-source-id: 777d78f45f9fa747b10bb54ba5876988d9b17eff
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:
The video_transcode_bench_svt_timed_mini benchmark takes ~36 seconds
wall-clock, but only ~15 seconds is actual encoding. The remaining ~19
seconds is spent downscaling all 42 source clips to target resolutions — a
data preparation step, not representative of production workloads.
This diff introduces a two-run pattern (similar to DjangoBench and
SparkBench mini) that separates preparation from measurement:
of clips (20%, ~8 clips) and caches them in resized_clips/ for reuse.
After this run, the ~42GB source dataset can be deleted to reduce OS image
size.
reuses cached resized_clips/, and runs only the encoding workload. Errors
if the cache doesn't exist. Can be run repeatedly.
Additional changes:
(tracked as a downscaling sub-operation in breakdown.csv), and only
encoding runs during main_benchmark
timed_parallel_feeder.sh with a deadline-based feeding loop that stops
dispatching jobs after max_time
Differential Revision: D102686096