Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup scrublet #3044

Merged
merged 6 commits into from
May 14, 2024
Merged

Speedup scrublet #3044

merged 6 commits into from
May 14, 2024

Conversation

Intron7
Copy link
Member

@Intron7 Intron7 commented May 6, 2024

No description provided.

Copy link

scverse-benchmark bot commented May 6, 2024

Benchmark changes

Change Before [c26480e] After [57732d0] Ratio Benchmark (Parameter)
- 8.01±0.2ms 7.05±0.07ms 0.88 preprocessing_counts.time_calculate_qc_metrics('pbmc68k_reduced')
+ 526M 611M 1.16 preprocessing_log.peakmem_pca('pbmc3k')

Comparison: https://github.com/scverse/scanpy/compare/c26480ed0dc2f7d27b796e0e355b29a8305886c6..57732d095a98202237b0a0882dc072aba9cb6a64
Last changed: Tue, 14 May 2024 11:28:07 +0000

More details: https://github.com/scverse/scanpy/pull/3044/checks?check_run_id=24945403112

Copy link

codecov bot commented May 6, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 76.28%. Comparing base (c26480e) to head (57732d0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3044   +/-   ##
=======================================
  Coverage   76.27%   76.28%           
=======================================
  Files         117      117           
  Lines       12803    12802    -1     
=======================================
  Hits         9766     9766           
+ Misses       3037     3036    -1     
Files Coverage Δ
scanpy/preprocessing/_scrublet/__init__.py 96.80% <100.00%> (+0.10%) ⬆️
scanpy/preprocessing/_scrublet/pipeline.py 94.59% <100.00%> (+0.30%) ⬆️
scanpy/preprocessing/_scrublet/sparse_utils.py 89.28% <71.42%> (-1.90%) ⬇️

... and 1 file with indirect coverage changes

@Zethson
Copy link
Member

Zethson commented May 8, 2024

scrublet doesn't seem to be part of the benchmarks at the moment

@Intron7
Copy link
Member Author

Intron7 commented May 8, 2024

@Zethson I think that this is a bit better. But not as much as I hoped

@flying-sheep
Copy link
Member

@Zethson I’m adding some in #3031, but it needs more thought: 30 minutes for a benchmark run is too long …

@flying-sheep flying-sheep added this to the 1.10.2 milestone May 14, 2024
@flying-sheep
Copy link
Member

flying-sheep commented May 14, 2024

With #3056 merged, this now says

before after ratio benchmark
448±100ms 381±100ms ~0.85 preprocessing_counts.time_scrublet('pbmc68k_reduced')

but ASV seems to think that’s not enough to report.

Also unclear why it’s reported as taking 26 minutes by github:

image

I see in the server logs

which means that between setting the check run to “running” and to “done”, 11m21s passed.

Maybe GitHub counts the queue time?

@flying-sheep flying-sheep merged commit fb79fed into main May 14, 2024
15 checks passed
@flying-sheep flying-sheep deleted the speedup-scrublet branch May 14, 2024 13:22
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request May 14, 2024
flying-sheep pushed a commit that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants