1. 下载apache benchmark
yum install apr-util yum-utils yum-utils.noarch mkdir /apache && cd /apache yumdownloader httpd-tools* rpm2cpio httpd-*.rpm | cpio -idmv
2. 进行简单的测试:
ab -n 10000 -c 100 http://10.24.193.202/platform/runtime/sys/web/index.html#/login # linux nginx :Time taken for tests: 5.525 seconds
ab -n 10000 -c 100 http://10.24.193.202:5000/platform/runtime/sys/web/index.html#/login # linux kestrel:Time taken for tests: 5.085 seconds ab -n 10000 -c 100 http://10.24.193.201/platform/runtime/sys/web/index.html#/login # Windows nginx:Time taken for tests: 15.421 seconds
ab -n 10000 -c 100 http://10.24.193.201:5000/platform/runtime/sys/web/index.html#/login #windows kestrel:Time taken for tests: 10.855 seconds