Created
April 10, 2019 22:58
-
-
Save Deses/226668499135a279986e421bd286ef26 to your computer and use it in GitHub Desktop.
Simple script to record the temps of a Raspberry Pi during some CPU benchmarks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
echo -e "\e[32m~~~~Initial temps~~~~\e[39m" | |
/opt/vc/bin/vcgencmd measure_temp | |
for f in {1..10} | |
do | |
echo -e "\e[32m~~~~Starting run" $f"~~~~\e[39m" | |
sysbench --test=cpu --cpu-max-prime=2 --num-threads=4 run > /dev/null 2>&1 | |
/opt/vc/bin/vcgencmd measure_temp | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment