Skip to content

金刚狼压力测试结果 #10

@yuyu1911

Description

@yuyu1911

16日用ab对金刚狼进行了压力测试,并发2000总计6000W请求,可惜ab蹦了没拿到结果,但服务器在承受6000W的请求没崩,这也算达到预期。后来做了1000并发+1000W请求的压力测试,其结果为:

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.20.158.33 (be patient)

Server Software:
Server Hostname: 10.20.158.33
Server Port: 1337

Document Path: /?data=%7B%22taskId%22%3A%2220120329%22%2C%22browser%22%3A%7B%22name%22%3A%22IE%22%2C%22version%22%3A7%2C%22engine%22%3A%22%22%7D%2C%22os%22%3A%7B%22name%22%3A%22windows%22%2C%22version%22%3A7%7D%2C%22language%22%3A%22zh-cn%22%7D
Document Length: 0 bytes

Concurrency Level: 1000
Time taken for tests: 7700.73020 seconds
Complete requests: 10000000
Failed requests: 0
Write errors: 0
Total transferred: 640000000 bytes
HTML transferred: 0 bytes
Requests per second: 1298.69 #/sec
Time per request: 770.007 ms
Time per request: 0.770 [ms](mean, across all concurrent requests)
Transfer rate: 81.17 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 3.6 0 3109
Processing: 46 768 81.4 749 5265
Waiting: 0 563 144.8 562 4874
Total: 46 769 81.5 749 5265

Percentage of the requests served within a certain time (ms)
50% 749
66% 765
75% 781
80% 781
90% 796
95% 828
98% 890
99% 968
100% 5265 (longest request)

从结果看,单位请求处理时间在0.7ms左右,还算不错。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions