10 lines
407 B
Bash
Executable File
10 lines
407 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo -e "\nRunning CoreMark test,please wait ..."
|
|
|
|
Scores=$(cat /tmp/coremark.log 2> /dev/null | grep "CoreMark 1.0" | awk '{print $4}')
|
|
Processer=$(awk -F ':[ ]' '/model name/{printf ($2);exit}' /proc/cpuinfo)
|
|
Time=$(grep "Total time" /tmp/coremark.log | awk '{print $4}')
|
|
[[ -z "${Processer}" ]] && Processer=Unknown
|
|
|
|
echo -e "\nProcesser: ${Processer}\nScore: ${Scores}\nTime costs: ${Time}" |