用wrk测试nginx/ndoejs/golang

taskset -c 1 ./wrk -c1 -t1 -d30 http://localhost/hello
wrk+nginx(helloworld module)
    sudo taskset -c 0 sbin/nginx
    nginx: cpu:96%
    wrk: cpu:46%
    Running 30s test @ http://localhost/hello
      1 threads and 1 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency    68.69us  420.93us  13.51ms   99.85%
        Req/Sec    14.00k     1.50k   15.56k    93.68%
      392990 requests in 30.00s, 318.17MB read
    Requests/sec:  13099.88
    Transfer/sec:     10.61MB
wrk+nodejs
    sudo taskset -c 0 nodejs nodejs_httpserver.js
    Running 30s test @ http://localhost/hello
      1 threads and 1 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency   121.25us  406.54us  10.73ms   99.68%
        Req/Sec     8.29k     0.85k    9.11k    94.91%
      233660 requests in 30.00s, 34.76MB read
    Requests/sec:   7788.90
    Transfer/sec:      1.16MB
wrk+golang
    golang: cpu:65%
    wrk: cpu:43%
    Running 30s test @ http://localhost/hello
      1 threads and 1 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency   126.33us  623.32us  14.23ms   99.69%
        Req/Sec     8.61k     1.03k   10.11k    92.66%
      242727 requests in 30.00s, 35.19MB read
    Requests/sec:   8091.02
    Transfer/sec:      1.17MB

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。