-
Notifications
You must be signed in to change notification settings - Fork 0
/
timedecompress1.cmd
executable file
·58 lines (42 loc) · 1 KB
/
timedecompress1.cmd
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/csh
# measure times for file decompression
# name of input file
set fn = 200908010000_RDR.TAB
#set fn = dgdr_tbol_avg_poln_20090810n_240_img.img
# input files must exist
# prepfiles.cmd creates these files
echo To clear page caches execute
echo sudo sysctl -w vm.drop_caches=1
echo before running this script
rm -f tmp
# do not use shell built-in time command, instead use /usr/bin/time
# txt
/usr/bin/time -o tmp cp $fn tmp.tab
rm -f tmp.tab
# brotli
rm -f $fn
/usr/bin/time -o tmp -a brotli -d -k $fn.br
# bzip2
rm -f $fn
/usr/bin/time -o tmp -a bzip2 -d -k $fn.bz2
# gzip
rm -f $fn
/usr/bin/time -o tmp -a gunzip -k $fn.gz
# lz4
rm -f $fn
/usr/bin/time -o tmp -a lz4 -d -q $fn.lz4
# lzma
rm -f $fn
/usr/bin/time -o tmp -a lzma -d -k $fn.lzma
# rar
rm -f $fn
/usr/bin/time -o tmp -a unrar e -inul $fn.rar
# rzip
rm -f $fn
/usr/bin/time -o tmp -a rzip -d -k $fn.rz
# zip
rm -f $fn
/usr/bin/time -o tmp -a unzip -q $fn.zip
# zstd
rm -f $fn
/usr/bin/time -o tmp -a unzstd -q $fn.zst