Repository navigation
bench/embed: the runs beside Ray Data (PR 3 of the plan) - #173
Merged
Merged
Conversation
…th sides Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
… runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
… the plan) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
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.
PR 3 of the embedding-gate plan (bench/embed/README.md): the measured runs of the dista flow beside Ray Data on
saiand the Mac, the script that makes them, and the results folders.bench/embed/run.pyruns one system in one configuration. It samples the job's whole process tree once a second (PSS on Linux, RSS on macOS) along with each process's CPU, kills an embed process by pid when asked, checks the output, and appends a row toresults/<date>-<host>/runs.tsvwith the machine, commit, versions and exact command.bench/embed/runs.shis the sequence of runs.EMBED_PINinembed.mojo(sched_setaffinity between fork and exec, so the Mojo pool follows it) and--pininembed_ray.py(each actor claims a CPU set and pins all its threads before PyTorch starts).embed.mojoalso prints the head's live objects (sampled once a second) and can serve the head's/metrics(EMBED_METRICS_PORT) for the retried-task count.results/2026-11-28-saiandresults/2026-11-28-bgent, and a "Results so far" section in the README. PR 3 is marked done there.Results, in brief:
saiwith the same CPU sets: 1.58 times Ray Data per pinned CPU at E=2, T=4 and 2.10 times at E=4, T=4. On the Mac the flow is 1.16 to 1.34 times ahead per CPU-second with the default setting.saiwas +61%, because the bench doesn't replace a killed worker.The full write-up is left for PR 4.
🤖 Generated with Claude Code
https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV