Welcome to little lamb

Code » test-rolling-hash » master » tree

[master] / tests-avgs

#!/bin/sh

run_dedup() {
    for file in test-*; do
    algo=$(expr substr "$file" 6 ${#file})
        ./tests-dedup $algo "$@" >>dedup.log 2>&1
    done
}

printf '\n%s\n\n' "8 KiB" >> dedup.log
run_dedup -a8192 "$@"
printf '\n%s\n\n' "16 KiB" >> dedup.log
run_dedup -a16384 "$@"
printf '\n%s\n\n' "32 KiB" >> dedup.log
run_dedup -a32768 "$@"
printf '\n%s\n\n' "64 KiB" >> dedup.log
run_dedup -a65536 "$@"
printf '\n%s\n\n' "128 KiB" >> dedup.log
run_dedup -a131072 "$@"
printf '\n%s\n\n' "256 KiB" >> dedup.log
run_dedup -a262144 "$@"
printf '\n%s\n\n' "512 KiB" >> dedup.log
run_dedup -a524288 "$@"
printf '\n%s\n\n' "1024 KiB" >> dedup.log
run_dedup -a1048576 -M2097152 "$@"