This Bash script is designed for benchmarking a Raspberry Pi's performance and monitoring various hardware and network metrics. It includes functionalities for CPU, memory, disk, and network benchmarks, as well as a stress test with real-time CPU temperature monitoring.
-
Hardware Information: Displays details about the Raspberry Pi's hardware, including CPU model, architecture, core count, memory, disk size, and more.
-
Network Information: Provides information about the network configuration, including hostname, internal and external IP addresses, subnet mask, gateway, DNS servers, and MAC address.
-
Benchmarks:
- CPU Benchmark: Measures the CPU performance using sysbench.
- Threads Benchmark: Evaluates the system's threading capabilities.
- Memory Benchmark: Tests memory operations using sysbench.
- Disk Benchmark: Assesses disk performance through DD write and read tests.
- Network Benchmark: Measures download speed, upload speed, and ping using speedtest-cli.
-
Stress Test: Conducts a stress test on the CPU using stress-ng with real-time temperature monitoring.
-
Clone the repository:
git clone https://github.com/iyotee/rpiBenchmark.git
-
Navigate to the script's directory:
cd rpiBenchmark
-
Make the script executable:
chmod +x benchmark.sh
-
Run the script:
sudo ./benchmark.sh
sysbench
hdparm
speedtest-cli
stress-ng
The script will check for the presence of each dependency and automatically install any missing packages.
This script is licensed under the MIT License.
Feel free to contribute and provide feedback!