diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-08-27 21:18:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-08-27 21:18:44 +0300 |
commit | 1b6c4c1f1b1afbca48e2b655207f890eacc719df (patch) | |
tree | 66eb5ad5870b3f2cd932f08242f9ad1d5d1751fb | |
parent | 9edce767b1abbfda5d269ce5f5f71bd583c14f2b (diff) | |
download | benchmarker-1b6c4c1f1b1afbca48e2b655207f890eacc719df.tar.gz |
use xz instaed of HandBrake
Easier setup, no need for a 33 gig input file
-rwxr-xr-x | benchmarker | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/benchmarker b/benchmarker index fe37cba..11e57f1 100755 --- a/benchmarker +++ b/benchmarker @@ -19,7 +19,7 @@ gotfile() } -cpubench() +cpubench_hb() { gotfile "$1" gotcmd HandBrakeCLI @@ -34,7 +34,18 @@ cpubench() } +cpubench_xz() +{ + local filename + echo "CPU benchmark (xz on a large sparse file)" + filename="$(mktemp)" + truncate -s 100G "$filename" + /bin/time --format="%e" xz -T0 < "$filename" > /dev/null + rm -f "$filename" +} + -skyfall="$1" +#skyfall="$1" +# cpubench_hb "$skyfall" -cpubench "$skyfall" +cpubench_xz |