Skip to content
Permalink
Browse files

update installnbench2.sh add Geekbench 5 test

  • Loading branch information...
centminmod committed Oct 9, 2019
1 parent fc256ca commit bbe8c8a0114a70e9dddd38927fe691c7bc8597e0
Showing with 29 additions and 1 deletion.
  1. +29 −1 installnbench2.sh
@@ -240,7 +240,7 @@ echo "/root/tools/sysbench.sh mysqlpointselect-new"

s
div
cecho "geekbench" $boldyellow
cecho "geekbench 4" $boldyellow
div
s
cd /svr-setup
@@ -259,6 +259,34 @@ echo $geekurl
echo
cat geekbench-results.txt

s
div
cecho "geekbench 5" $boldyellow
div
s
cd /svr-setup
wget http://cdn.geekbench.com/Geekbench-5.0.2-Linux.tar.gz
tar xvzf Geekbench-5.0.2-Linux.tar.gz
cd Geekbench-5.0.2-Linux
./geekbench5 2>&1 | tee geektest.log
geekurl=$(cat geektest.log | awk -F ' ' '/https:\/\/browser.geekbench.com\/v5\/cpu\// {print $1}' | head -n1)
curl -4s $geekurl > geekbench-raw.txt
# cat geekbench-raw.txt | awk '/<th class/{print $0}' | grep -oP "(?<=<td class='name'>)[^<]*" | awk 'NR>2' | sed -e 's| |-|g' > name.txt
# cat geekbench-raw.txt | awk '/<td class/{print $0}' | grep -oP "(?<=<td class='score'>)[^<]*" | awk 'NR>2' > score.txt
# name scores
cat geekbench-raw.txt | grep -A4 "<th class='name'" | egrep -v '<br>|th>|<th|--' | sed -e 's| |-|g' | xargs -L2 > name-scores.txt
# cat geekbench-raw.txt | grep -A5 "<td class='name'" | egrep -v '<br>|td>|<td|--' | sed -e 's| |-|g' | xargs -L2 >> name-scores.txt
cat name-scores.txt | column -t > geekbench-results.txt
sed -i 's/Multi-Core-Score/\nMulti-Core-Score/' geekbench-results.txt
echo
echo $geekurl
echo
cat geekbench-results.txt

s
echo "ls -lahrt /root/centminlogs/"
ls -lahrt /root/centminlogs/

s
echo "benchmark run complete"
}

0 comments on commit bbe8c8a

Please sign in to comment.
You can’t perform that action at this time.