代码拉取完成,页面将自动刷新
sidebar |
---|
auto |
通过 apache benchmark 工具进行压力测试
JDK信息:
硬件信息
测试代码:
@RequestMapping("/")
public class HelloDemo extends JbootController {
public static void main(String[] args) {
Jboot.setBootArg("jboot.mode","product");
Jboot.run(args);
}
public void index() {
renderText("hello jboot ...");
}
}
代码含义:
模拟10个并发,10000次访问:
ab -c10 -n10000 http://localhost:8080/
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: localhost
Server Port: 8080
Document Path: /
Document Length: 15 bytes
Concurrency Level: 10
Time taken for tests: 0.716 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2330000 bytes
HTML transferred: 150000 bytes
Requests per second: 13970.07 [#/sec] (mean)
Time per request: 0.716 [ms] (mean)
Time per request: 0.072 [ms] (mean, across all concurrent requests)
Transfer rate: 3178.74 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 0 0 0.1 0 3
Waiting: 0 0 0.1 0 3
Total: 0 1 0.1 1 4
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 1
100% 4 (longest request)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。