Browse Source

improve cpu-benchmark

master
VirtuBox 2 months ago
parent
commit
304a191703
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 6 additions and 12 deletions
  1. +6
    -12
      sysbench.sh

+ 6
- 12
sysbench.sh View File

@ -17,20 +17,14 @@ echo "CPU Benchmark"
echo "#################################"
echo ""
echo "starting CPU Benchmark"
echo "starting Single thread CPU Benchmark"
sysbench cpu --cpu-max-prime=20000 run
echo "CPU Benchmark : [OK]"
echo "Single thread CPU Benchmark : [OK]"
echo ""
echo "#################################"
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 "starting Multi threads CPU Benchmark"
sysbench cpu --threads="$(nproc)" --cpu-max-prime=20000 run
echo "Disk Benchmark : [OK]"
echo "Multi threads CPU Benchmark : [OK]"

Loading…
Cancel
Save