如何衡量 linux 中的基准

how can measure the benchmark in linux

我在我的 Centos 上安装了 phoronix-test-suite 2.6.32-504.23.4.el6.x86_64 内核 我想对 Nginx 和 Apache Web 服务器进行基准测试。

我 运行 phoronix-test-suite benchmark pts/apache 我得到了以下结果:

Apache Benchmark 2.4.7:
    pts/apache-1.6.1
    Test 1 of 1
    Estimated Trial Run Count:    3
    Estimated Time To Completion: 9 Minutes
        Running Pre-Test Script @ 14:21:20
        Started Run 1 @ 14:21:25
        Started Run 2 @ 14:24:36
        Started Run 3 @ 14:27:25  [Std. Dev: 7.14%]
        Started Run 4 @ 14:30:15  [Std. Dev: 6.37%]
        Started Run 5 @ 14:33:01  [Std. Dev: 5.84%]
        Started Run 6 @ 14:36:03  [Std. Dev: 5.76%]
        Running Post-Test Script @ 14:39:08

    Test Results:
        5329.74
        6048.09
        6048.02
        6132.58
        5659.47
        5514.46

    Average: 5788.73 Requests Per Second

这些数字是多少?

phoronix 对您的 apache 进行了 ab 压力测试,该测试耗时 9 分钟,他进行了 6 次测试。

    5329.74
    6048.09
    6048.02
    6132.58
    5659.47
    5514.46

这些数字是每次测试中每秒的请求数

Average: 5788.73 Requests Per Second

这是所有测试的平均值。