diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-18 15:52:07 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-18 15:52:07 +0300 |
commit | 7877a4e5f91c0da0c3a3531bd1789c0bb1027b20 (patch) | |
tree | 9fc98a9d473e3dfe1ea7fe8b14334cdf3840244c | |
parent | 7a19eeba8bcd4640d514fe20fddbf9ddafa1a8ec (diff) | |
download | benchmarker-7877a4e5f91c0da0c3a3531bd1789c0bb1027b20.tar.gz |
drop: handbrake code; use 10G for xz
-rwxr-xr-x | benchmarker | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/benchmarker b/benchmarker index 11e57f1..1f8da4d 100755 --- a/benchmarker +++ b/benchmarker @@ -18,34 +18,14 @@ gotfile() test -e "$1" || die "Need file $1" } - -cpubench_hb() -{ - gotfile "$1" - gotcmd HandBrakeCLI - echo "CPU benchmark (HandBrake video transcoding)" - time chronic HandBrakeCLI --main-feature \ - -Z "H.265 MKV 720p30" \ - --all-audio \ - --subtitle-lang-list fin \ - --first-subtitle \ - -i "$1" \ - -o /dev/null 2>&1 - -} - cpubench_xz() { local filename echo "CPU benchmark (xz on a large sparse file)" filename="$(mktemp)" - truncate -s 100G "$filename" + truncate -s 10G "$filename" /bin/time --format="%e" xz -T0 < "$filename" > /dev/null rm -f "$filename" } - -#skyfall="$1" -# cpubench_hb "$skyfall" - cpubench_xz |