Test CPU performance with Pi number generator bash script source code
This script tests your CPU performance, the time it takes to generate a given number of Pi decimals.
Create a file on your Desktop and name it for example pigenerator.sh. Open file, copy/paste and save the code below.
(run the script in terminal with this command: bash /yourlocation/pigenerator.sh).
#!/bin/bash #Pi number generator #CPU performance tester #Built by Zeus-www.thelinuxterminal.com #For more info drop a mail: email@example.com read -p "Enter decimal number (e.g. 1000): " piscale pi_scale="$piscale" echo time echo "scale=$pi_scale; 4*a(1)" | bc -l echo echo "Done."
Test CPU performance with Pi number generator bash script source code by The Linux Terminal is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.