Skip to content

Instantly share code, notes, and snippets.

@crawler
Created April 2, 2026 16:40
Show Gist options
  • Select an option

  • Save crawler/9ea040b8a60958d0232e953fdd51ba4a to your computer and use it in GitHub Desktop.

Select an option

Save crawler/9ea040b8a60958d0232e953fdd51ba4a to your computer and use it in GitHub Desktop.
sysbench suite
#!/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