Skip to content

Add parallel scaling microbenchmark - #1267

Merged
godofecht merged 10 commits into
mainfrom
devin/text-io-bench
Oct 6, 2026
Merged

godofecht merged 10 commits into
mainfrom
devin/text-io-bench

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • ./flow run benchmarks/micro/parallel_scaling.flow

Local 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

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
cursoragent and others added 3 commits October 5, 2026 11:40
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]>
@godofecht
godofecht merged commit fc55d33 into main Oct 6, 2026
30 checks passed
@godofecht
godofecht deleted the devin/text-io-bench branch October 12, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants