欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tomcat bio nio apr

程序员文章站 2022-07-14 13:38:20
...

 

界面 http://127.0.0.1:8080/test.html 大小15.1k文本

tomcat5.5
并发/请求
100 / 100000
无tcnative-1.dll时 Time per request: 5.337 [ms] (mean, across all concurrent requests)
有tcnative-1.dll时apr Time per request: 8.331 [ms] (mean, across all concurrent requests)

并发/请求
10/10000
无tcnative-1.dll时 Time per request: 4.474 [ms] (mean, across all concurrent requests)
有tcnative-1.dll时apr Time per request: 5.004 [ms] (mean, across all concurrent requests)

tomcat7 64位
并发/请求
100 / 100000
bio Time per request: 8.472 [ms] (mean, across all concurrent requests)
nio Time per request: 7.868 [ms] (mean, across all concurrent requests)
apr Time per request: 7.976 [ms] (mean, across all concurrent requests)

并发/请求
10 / 10000
bio Time per request: 7.218 [ms] (mean, across all concurrent requests)
nio Time per request: 10.120 [ms] (mean, across all concurrent requests)
apr Time per request: 6.134 [ms] (mean, across all concurrent requests)

tomcat7 32位(线程池会溢出)
并发/请求
100 / 100000
bio
nio
apr Time per request: 10.449 [ms] (mean, across all concurrent requests)

并发/请求
10 / 10000
bio
nio
apr Time per request: 5.759 [ms] (mean, across all concurrent requests)

tomcat的 apr在windows下是默认开启的 在linux下需要配置
测试下来 感觉 还是apr比较靠谱 网上也没有类似的性能参考