https://linuxize.com/post/bash-increment-decrement-variable/
cat loopt.sh
#!/bin/bash
i=0
until [ $i -gt 999999 ]
do
# echo i: $i
((i=i+1))
done
Same result:
root@bpi-r64:~# time ./loopt.sh
real 0m32.162s
user 0m31.369s
sys 0m0.332s
root@bpi-r64:~# time ./loopt.sh
real 0m34.129s
user 0m33.398s
sys 0m0.256s
root@bpi-r64:~# time ./loopt.sh
real 0m55.154s
user 0m54.392s
sys 0m0.047s
root@bpi-r64:~# time ./loopt.sh
real 4m35.645s
user 4m6.002s
sys 0m9.492s
And times are only increasing until 4 and a half minutes, but never come back down to a half minute…
root@bpi-r64:~# cat /sys/class/thermal/thermal_zone0/temp
58900
Stays around 60, does not go any higher anymore