Skip to content

Instantly share code, notes, and snippets.

@Deses
Created April 10, 2019 22:58
Show Gist options
  • Save Deses/226668499135a279986e421bd286ef26 to your computer and use it in GitHub Desktop.
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
#!/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