File: run_benchmark_02_gzip.sh

package info (click to toggle)
golang-github-shenwei356-bio 0.13.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 792 kB
  • sloc: perl: 114; sh: 58; makefile: 21
file content (58 lines) | stat: -rwxr-xr-x 1,283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

echo Test: Gzip compressed
echo Output sequences of all apps are not wrapped to fixed length.


echo -en "\n============================================\n";

for f in dataset_*.f{a,q}.gz; do

    echo read file once with cat
    cat $f > /dev/null;
    
    
    echo -en "\n------------------------------------\n";    
    
    echo == seqkit
    echo data: $f;
    
    memusg -t -H seqkit seq $f -w 0 -o $f.seqkit.gz --compress-level 6;    
    
    pigz -cd $f.seqkit.gz | md5sum;
    /bin/rm $f.seqkit.gz;
    
    
    echo -en "\n------------------------------------\n";    
    
    echo == seqkit_t1
    echo data: $f;
    
    memusg -t -H seqkit seq $f -w 0 -j 1 -o $f.seqkit.gz --compress-level 6;    
    
    pigz -cd $f.seqkit.gz | md5sum;
    /bin/rm $f.seqkit.gz;
    
    
    echo -en "\n------------------------------------\n";  
    
    echo == seqtk+gzip
    echo data: $f;

    memusg -t -H seqtk seq $f | gzip -c > $f.seqtk.gz;
    
    pigz -cd $f.seqtk.gz | md5sum
    /bin/rm $f.seqtk.gz;  
    
        
    echo -en "\n------------------------------------\n";  
    
    echo == seqtk+pigz
    echo data: $f;

    memusg -t -H seqtk seq $f | pigz -p 4 -c > $f.seqtk.gz;
    
    pigz -cd $f.seqtk.gz | md5sum
    /bin/rm $f.seqtk.gz;  
done