Repository navigation
Re-measure the performance report for 2.0.0 - #134
Merged
Merged
Conversation
PERFORMANCE.md still described truecell 1.0.0 on an Apple M4 Pro, which timed the old single igraph Louvain pass and had no DESeq2 row. The full sweep is re-run on an Apple M5 Pro at main b2f0561 and the report rewritten from it. - 45 of 68 like-for-like steps faster, 22 slower, 1 within 5 %; the standard workflow still goes to Seurat by 1.2-2.5x, on seeded UMAP and presto. - Clustering is Seurat's optimiser on both sides: the same cluster counts on all four datasets, at 1.1-1.2x Seurat's time from 8k cells up. - DESeq2's first row: 3.9x faster than Seurat, but pydeseq2 starts one worker process per core and the process tree peaks at 5.2 GB; held to one worker the call is 4.2 s and 1.2 GB with identical output (measured separately), which the report lists under what to do. - The M4 Pro sweep moves to results_m4pro/; the report's two findings from it (reference BLAS, the densify fix) are labelled as such. - Benchmark README: nine benches, not eight; runtime; a note that a shell without a UTF-8 locale makes R draw the figures' em dashes as "...". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
What this does
tutorials/benchmark/PERFORMANCE.mdstill described truecell 1.0.0 on an Apple M4 Pro (3 Aug 2026). That made two things false for 2.0.0:This re-runs the full sweep (
sweep.sh, 41 min) on this machine (Apple M5 Pro, 18 cores, macOS 27.0) atmainb2f0561, and rewrites the report from the new results.Headline results (the tally comes from
make_report.py):Tally: truecell is faster in 45 of 68 like-for-like steps, slower in 22, and within 5 % in 1.
Standard workflow: Seurat is still 1.2–2.5x faster end to end. As before, that's seeded UMAP and presto's Wilcoxon. With the seed dropped, truecell is 1.2–1.4x faster from 8k cells up.
Clustering now runs Seurat's optimiser on both sides. The same number of clusters on all four datasets (9, 12, 16, 8), at 1.1–1.2x Seurat's time from 8k cells up.
DESeq2 has a row for the first time: 2.50 s against 9.67 s, 3.9x faster. But it takes the process tree from under 1 GB to 5.2 GB (Seurat 2.5 GB). pydeseq2 starts one worker process per core (18 here) through
multiprocessing.cpu_count(), truecell doesn't limit it, and the workers stay alive after the call. Measured separately with pydeseq2 held to one worker, with identical output:The report says so and lists it under "what to do". No code changes here.
How the old material is kept:
results_m4pro/(a git rename, nothing lost).compare_sweeps.pycommands in the README now point atresults_m4pro/.Also:
LANG, so R ran under the C locale and drew the em dashes in nine committed R figures as "...". Those figures were restored. The same R steps under the C locale reproduced every reported number (14 tutorials checked against the UTF-8 reference reports).Verification
find_all_markers3514/3514 on PBMC 3k).mkdocs build --strictpasses, and the new in-page anchors (#25-clustering-runs-seurats-optimiser,#5-named-operations) resolve.main).results/*.jsonwithmake_report's own loader, not read off by eye.🤖 Generated with Claude Code