Skip to content

Instantly share code, notes, and snippets.

@rraallvv
Last active January 30, 2020 21:29
Show Gist options
  • Save rraallvv/807d28b8fba0ba369ffad06c6bdce2d8 to your computer and use it in GitHub Desktop.
Save rraallvv/807d28b8fba0ba369ffad06c6bdce2d8 to your computer and use it in GitHub Desktop.
Benchmarking
# CPU
sysbench --test=cpu --cpu-max-prime=1000 run
# Disk
# Random read write
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=1M --readwrite=randrw --rwmixread=75
# Random read
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=1M --readwrite=randread
# Random write
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=1M --readwrite=randwrite
# Connection
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment