Skip to content

Commit

Permalink
Check for performance regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Aug 14, 2023
1 parent 253c9a6 commit ad361d8
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sambamba/main.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of Sambamba.
Copyright (C) 2012-2017 Artem Tarasov <lomereiter@gmail.com>
Copyright (C) 2012-2022 Pjotr Prins <pjotr.prins@thebird.nl>
Copyright (C) 2012-2023 Pjotr Prins <pjotr.prins@thebird.nl>
Sambamba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -83,7 +83,7 @@ For bug reports and feature requests see

void printVersion() {
stderr.writeln();
stderr.writeln("sambamba " ~ VERSION ~ " by Artem Tarasov and Pjotr Prins (C) 2012-2022");
stderr.writeln("sambamba " ~ VERSION ~ " by Artem Tarasov and Pjotr Prins (C) 2012-2023");
stderr.writeln(" LDC " ~ LDC_VERSION_STRING ~ " / DMD " ~ DMD_VERSION_STRING ~
" / LLVM" ~ LLVM_VERSION_STRING ~ " / bootstrap " ~ BOOTSTRAP_VERSION_STRING);
stderr.writeln();
Expand Down
63 changes: 62 additions & 1 deletion test/benchmark/stats.org
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,50 @@ sys 0m16.908s
*** AMD Ryzen 7 3700X 8-Core Processor

#+BEGIN_SRC
time ./bin/sambamba-0.8.1-pre1 view HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam > /dev/null

time ./bin/sambamba-1.0.0 view HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam > /dev/null
sambamba 1.0.0
by Artem Tarasov and Pjotr Prins (C) 2012-2022
LDC 1.32.0 / DMD v2.102.2 / LLVM14.0.6 / bootstrap LDC - the LLVM D compiler (1.32.0)
real 0m1.435s
user 0m14.648s
sys 0m0.336s

time ./bin/sambamba-0.8.2-linux-amd64-static view HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam > /dev/null
sambamba 0.8.2
by Artem Tarasov and Pjotr Prins (C) 2012-2021
LDC 1.27.1 / DMD v2.097.2 / LLVM11.0.0 / bootstrap LDC - the LLVM D compiler (1.27.1)
real 0m1.393s
user 0m14.114s
sys 0m0.366s


time ./bin/sambamba-0.8.1-pre1 view HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam > /dev/null
sambamba 0.8.1-pre1
by Artem Tarasov and Pjotr Prins (C) 2012-2021
LDC 1.26.0 / DMD v2.096.1 / LLVM9.0.1 / bootstrap LDC - the LLVM D compiler (0.17.6)
real 0m1.398s
user 0m16.589s
sys 0m0.240s

--- sort

time ./bin/sambamba-1.0.0 sort HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam

sambamba 1.0.0
by Artem Tarasov and Pjotr Prins (C) 2012-2022
LDC 1.32.0 / DMD v2.102.2 / LLVM14.0.6 / bootstrap LDC - the LLVM D compiler (1.32.0)
real 0m9.769s
user 2m1.187s
sys 0m3.830s

sambamba 0.8.2
by Artem Tarasov and Pjotr Prins (C) 2012-2021
LDC 1.27.1 / DMD v2.097.2 / LLVM11.0.0 / bootstrap LDC - the LLVM D compiler (1.27.1)
real 0m9.472s
user 1m58.529s
sys 0m3.850s

time ./bin/sambamba-0.8.1-pre1 sort HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam

sambamba 0.8.1-pre1
Expand All @@ -54,6 +89,32 @@ real 0m9.151s
user 2m5.779s
sys 0m3.101s

time ./bin/sambamba-0.6.8-linux-static sort HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.bam

sambamba 0.6.8 by Artem Tarasov and Pjotr Prins (C) 2012-2018
LDC 1.10.0 / DMD v2.080.1 / LLVM6.0.1 / bootstrap LDC - the LLVM D compiler (0.17.4)
real 0m10.213s
user 2m6.739s
sys 0m3.425s

--- markdup

time ./bin/sambamba-1.0.0 markdup HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.sorted.bam dedup.bam
sambamba 1.0.0
by Artem Tarasov and Pjotr Prins (C) 2012-2022
LDC 1.32.0 / DMD v2.102.2 / LLVM14.0.6 / bootstrap LDC - the LLVM D compiler (1.32.0)
real 0m10.831s
user 1m41.497s
sys 0m3.413s

time ./bin/sambamba-0.8.2-linux-amd64-static markdup HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.sorted.bam dedup.bam
sambamba 0.8.2
by Artem Tarasov and Pjotr Prins (C) 2012-2021
LDC 1.27.1 / DMD v2.097.2 / LLVM11.0.0 / bootstrap LDC - the LLVM D compiler (1.27.1)
real 0m10.315s
user 1m38.043s
sys 0m3.292s

time ./bin/sambamba-0.8.1-pre1 markdup HG00100.chrom20.ILLUMINA.bwa.GBR.low_coverage.20130415.sorted.bam dedup.bam
by Artem Tarasov and Pjotr Prins (C) 2012-2021
LDC 1.26.0 / DMD v2.096.1 / LLVM9.0.1 / bootstrap LDC - the LLVM D compiler (0.17.6)
Expand Down

0 comments on commit ad361d8

Please sign in to comment.