Skip to content

Commit

Permalink
Prepare for future implementation of 7z
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed May 1, 2019
1 parent f630366 commit 45493ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,12 @@ rm -f $tmpdir/test_file.*
echo "---------------------------------" >> $tmpdir/nems-benchmark.log

printf "Performing 7z Benchmark: " >> $tmpdir/nems-benchmark.log
7z=$(which 7za || which 7zr)
taskset -c 0 "$7z" b
prog=$(which 7za || which 7zr)
taskset -c 0 "$prog" b > $tmpdir/7z.log
if (( $cores > 4 )); then
taskset -c $(( $cores - 1 )) "$7z" b
taskset -c $(( $cores - 1 )) "$prog" b >> $tmpdir/7z.log
fi
echo " Done." >> $tmpdir/nems-benchmark.log

echo "---------------------------------" >> $tmpdir/nems-benchmark.log

Expand Down

0 comments on commit 45493ab

Please sign in to comment.