性能测试工具 - 图1
OS : sysbench, stress, stress-ng
Memory : memtest
Disk : dd, fio, iozone
Network : iperf3, hping3, nmap
Web : ab, hey, beeswithmachineguns (Advanced)

OS

sysbench

https://github.com/akopytov/sysbench

  1. [root@ip-172-31-15-250 ~]# sysbench --threads=3 cpu run
  2. sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
  3. Running the test with following options:
  4. Number of threads: 3
  5. Initializing random number generator from current time
  6. Prime numbers limit: 10000
  7. Initializing worker threads...
  8. Threads started!
  9. CPU speed:
  10. events per second: 1693.72
  11. General statistics:
  12. total time: 10.0009s
  13. total number of events: 16941
  14. Latency (ms):
  15. min: 1.03
  16. avg: 1.77
  17. max: 26.21
  18. 95th percentile: 8.13
  19. sum: 29981.64
  20. Threads fairness:
  21. events (avg/stddev): 5647.0000/92.97
  22. execution time (avg/stddev): 9.9939/0.01