Load Test on Yan

给Yan的验证码图片服务做了压力测试。测试环境:

  • Intel Xeon 3.00GHz 4核
  • 内存2G
  • Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
  • Jetty 6 / JDK 6

Jetty采用默认配置 maxThreads 200。

测试工具:ab (Apache Bench)

分别用10/50/100/200/500/1000并发用户,每个用户请求100次进行测试。结果如下:

10 50 100 200 500 1000
Requests per second 487.11 472.09 442.74 421.63 408.11 326.12
Time per request 2.05 2.12 2.26 2.37 2.45 3.07
Transfer rate 987.91 955.54 896.85 854.31 826.25 660.45



目前对每个请求独立使用JDK的awt实时绘图,吞吐量可以达到400以上,如果稍稍优化一下Jetty的配置,性能还有一定的提升空间。这个结果还是不错的。

This entry was written by Sunng , posted on Friday December 25 2009at 12:12 pm , filed under 广告 and tagged , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

2 Responses to “Load Test on Yan”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word