File: multi-threaded.sh

package info (click to toggle)
libzstd 1.5.4%2Bdfsg2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 10,568 kB
  • sloc: ansic: 84,681; sh: 3,649; python: 3,342; cpp: 2,923; makefile: 2,282; asm: 371
file content (15 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# Test multi-threaded flags
zstd --single-thread file -f -q         ; zstd -t file.zst
zstd -T2 -f file -q                     ; zstd -t file.zst
zstd --rsyncable -f file -q             ; zstd -t file.zst
zstd -T0 -f file -q                     ; zstd -t file.zst
zstd -T0 --auto-threads=logical -f file -q ; zstd -t file.zst
zstd -T0 --auto-threads=physical -f file -q ; zstd -t file.zst

# multi-thread decompression warning test
zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T0 -d file.zst -o file3
zstd -T0 -f file -q                     ; zstd -t file.zst; zstd -T2 -d file.zst -o file4