gregorip02 / node-vs-swoole

Compare swoole php server with nodejs express server app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js server vs Swoole server

Clone and install node dependencies.

git clone https://github.com/gregorip02/node-vs-swoole.git
cd node-vs-swoole
yarn

Setup docker containers.

docker-compose up -d

AB Testing

If you not have the ab command install it.

apt-get update && apt-get install apache2-utils -y

Test node.js server.

ab -n 5000 -c 500 http://localhost:3000/

Test swoole server.

ab -n 5000 -c 500 http://localhost:9501/

About

Compare swoole php server with nodejs express server app.


Languages

Language:PHP 68.1%Language:JavaScript 31.9%