summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-18 15:52:07 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-18 15:52:07 +0300
commit7877a4e5f91c0da0c3a3531bd1789c0bb1027b20 (patch)
tree9fc98a9d473e3dfe1ea7fe8b14334cdf3840244c
parent7a19eeba8bcd4640d514fe20fddbf9ddafa1a8ec (diff)
downloadbenchmarker-7877a4e5f91c0da0c3a3531bd1789c0bb1027b20.tar.gz
drop: handbrake code; use 10G for xz
-rwxr-xr-xbenchmarker22
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