This commit is contained in:
陆柯 2022-06-26 20:51:18 +08:00
parent 6eaa066a19
commit d2bdbe774e

9
cpu-test-by-pi.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
echo "=== Enter Pi precision to calculate (leave blank for default to 5000): "
read -p ">>> " precision
if [ ! $precision ]; then
precision=5000
fi
time echo "scale=$precision; 4*a(1)" | bc -l -q