Created
April 2, 2026 16:40
-
-
Save crawler/9ea040b8a60958d0232e953fdd51ba4a to your computer and use it in GitHub Desktop.
sysbench suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # CPU Test | |
| echo "Running CPU test..." | |
| echo "-----------------------------------------------------------------------" | |
| # sysbench cpu --cpu-max-prime=20000 run | |
| sysbench cpu run | |
| echo "-----------------------------------------------------------------------" | |
| # Memory Test | |
| echo "Running Memory test..." | |
| echo "-----------------------------------------------------------------------" | |
| # sysbench memory --memory-block-size=1M --memory-total-size=10G run | |
| sysbench memory run | |
| echo "-----------------------------------------------------------------------" | |
| # File I/O Test | |
| echo "Setting up file I/O test..." | |
| echo "-----------------------------------------------------------------------" | |
| sysbench fileio --file-total-size=5G prepare | |
| echo "-----------------------------------------------------------------------" | |
| echo "Running file I/O test..." | |
| echo "-----------------------------------------------------------------------" | |
| sysbench fileio --file-total-size=5G --file-test-mode=rndrw run | |
| echo "-----------------------------------------------------------------------" | |
| echo "Cleaning up file I/O test..." | |
| echo "-----------------------------------------------------------------------" | |
| sysbench fileio --file-total-size=5G cleanup | |
| echo "-----------------------------------------------------------------------" | |
| echo "All tests completed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment