Repository navigation
Add parallel scaling microbenchmark - #1267
Merged
Merged
Conversation
The new benchmark times identical serial and disjoint-chunk parallel passes over an 8 MiB element array and reports 1/2/4/8-part wall times plus efficiency. It uses a deterministic mix and checksum so the result stays verifiable whether the host toolchain enables OpenMP. Refs #741
This was referenced Oct 4, 2026
Co-authored-by: Abhishek Shivakumar <[email protected]>
Use a monotonic microsecond clock so efficiency is computed from sub-millisecond samples instead of dividing by a rounded-zero millisecond reading. Keep the published JSON field names. Co-authored-by: Abhishek Shivakumar <[email protected]>
Co-authored-by: Abhishek Shivakumar <[email protected]>
This was referenced Oct 5, 2026
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/micro/parallel_scaling.flowfor [Performance #727] Benchmark and optimize CPU multicore scaling, scheduler overhead and false sharing #741.parallel forpasses over an 8 MiB element array.benchmarks/README.md.Test plan
./flow run benchmarks/micro/parallel_scaling.flowLocal result
On this macOS host the current run completed with exit 0 and reported:
{"benchmark":"parallel_scaling","n":8000000,"passes":4,"reps":3,"serial_ms":8,"parallel_ms":{"1":9,"2":8,"4":8,"8":8},"efficiency_x100":{"1":88,"2":50,"4":25,"8":12},"checksum":131067888896}Refs #741