improve cpu-benchmark

This commit is contained in:
VirtuBox 2020-11-03 15:10:28 +01:00
parent 8b40702ac4
commit 304a191703
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 6 additions and 12 deletions

View File

@ -17,20 +17,14 @@ echo "CPU Benchmark"
echo "#################################" echo "#################################"
echo "" echo ""
echo "starting CPU Benchmark" echo "starting Single thread CPU Benchmark"
sysbench cpu --cpu-max-prime=20000 run sysbench cpu --cpu-max-prime=20000 run
echo "CPU Benchmark : [OK]" echo "Single thread CPU Benchmark : [OK]"
echo "" echo ""
echo "#################################" echo "starting Multi threads CPU Benchmark"
echo "Disk Benchmark"
echo "#################################"
echo ""
echo "starting Disk Benchmark"
sysbench fileio --file-total-size=5G prepare &>/dev/null
sysbench fileio --file-total-size=5G --file-test-mode=rndrw --time=300 --max-requests=0 run >>sysbench.log
sysbench fileio --file-total-size=5G cleanup &>/dev/null
echo "Disk Benchmark : [OK]" sysbench cpu --threads="$(nproc)" --cpu-max-prime=20000 run
echo "Multi threads CPU Benchmark : [OK]"