Nodejs 和PHP 性能测试结果
Nodejs 和PHP 性能测试结果
为什么80%的码农都做不了架构师?>>>
nodejs 和 php 实现的是一个像他的功能,从MySQL里读出读出五行数据。
测试命令:
ab.exe -n10000 -c100 http://127.0.0.1:1337/ > node.log
ab.exe -n10000 -c100 http://127.0.0.1/abTest.php > php.log
Nodejs 的测试结果:
PHP的测试结果:
NodeJs的代码:
var mysql = require('mysql'),
http = require('http');</