• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3set -e
4
5# Test --adapt
6zstd -f file --adapt -c | zstd -t
7
8datagen -g100M > file100M
9
10# Pick parameters to force fast adaptation, even on slow systems
11zstd --adapt -vvvv -19 --zstd=wlog=10 file100M -o /dev/null 2>&1 | grep -q "faster speed , lighter compression"
12
13# Adaption still happens with --no-progress
14zstd --no-progress --adapt -vvvv -19 --zstd=wlog=10 file100M -o /dev/null 2>&1 | grep -q "faster speed , lighter compression"
15