sstadick / perbase

Per-base per-nucleotide depth analysis
MIT License
115 stars 13 forks source link

How much faster than mosdepth? #30

Closed brainstorm closed 3 years ago

brainstorm commented 3 years ago

Did you cargo bench this? I'm curious! :)

sstadick commented 3 years ago

I have not set up a rigorous enough set of benchmarks to really claim to be faster than mosdepth!

Anecdotally, the perbase only-depth and perbase only-depth -x commands are just a tad faster on datasets I have laying around and use almost the same algorithm as mosdepth. I believe the time difference would get bigger with larger samples and more cores since perbase spreads the work out better than mosdepth, but again, I don't have a solid benchmark datasets to back that up yet.

Differences that I know of between perbase only-depth and mosdepth:

As an aside, if you are familiar with the mosdepth project, my benchmarking efforts ended when I failed at finding the data used to generate the mosdepth benchmarks (not due to the authors fault, just my own inability to navigate navigate NCBI SRA). ERR1395576 from the supplemental materials of the mosdepth publication.

Anyways, long answer to your short question! Thanks for working on the htslib mac OSX stuff!

sstadick commented 3 years ago

Linking these for future reference: https://github.com/sstadick/perbase/issues/31

brainstorm commented 3 years ago

Woah, thanks for the details, looking forward to those benches ;)