rrestjs、expressjs和node.js性能测试结果

最后是node.js expressjs 和rrestjs的测试报告:(rrestjs的ip过滤和session均未开启)

Node.js服务器配置:
Cpu:Intel(R) Xeon(R) E5620 2.4GHZ (8 cpus )
Mem:6G
System:linux 2.6.8

Ab和webbench测试服务器:
Cpu:Intel(R) Xeon(R) E5620 2.4GHZ (8 cpus )
Mem:6G
System:linux 2.6.8

Node版本:0.6.6
网络环境:内网

第一项 “HELLO WORLD”:

打开8个node.js进程,三种情况(裸奔node.js,expressjs框架,rrestjs框架)分别输出hello world 字符串,测试其响应速度。

AB测试结果(50000个请求)

img

webbench测试结果(连续发送15秒)

img

第二项 “INDEX.HTML”:

打开8个node.js进程,三种情况(裸奔node.js,expressjs框架,rrestjs框架)分别输出静态文件index.html(内容为hello world),测试其响应速度。

AB测试结果(50000个请求)

img

webbench测试结果(连续发送15秒)

img

第三项 “INDEX.JADE”:

打开8个node.js进程,三种情况(expressjs框架,rrestjs框架,rrestjs开启jade缓存)分别输出jade动态模版index.jade(内容为hello world),测试其响应速度。

AB测试结果(50000个请求)

img

webbench测试结果(连续发送15秒)

img