¿ Cuanto tráfico puede aguantar un vps pequeño ?. Rendimiento en node.js vs apache wordpress y prestashop

I did a little speed test in my webfarm. I you are asking how may traffic can you attend with a little 512Mb RAM VPS, see the  following results based on ab tool.


Debian 7 VPS

512 Mb RAM


Test with 100 requests in total, 10 concurrency


Requests per second: 25.99 [#/sec] (mean)
Time per request: 384.691 [ms] (mean)
Time per request: 38.469 [ms] (mean, across all concurrent requests)
Transfer rate: 9.47 [Kbytes/sec] received


Requests per second: 15.64 [#/sec] (mean)
Time per request: 639.337 [ms] (mean)
Time per request: 63.934 [ms] (mean, across all concurrent requests)
Transfer rate: 9.75 [Kbytes/sec] received

node.js with socket.io

Requests per second: 41.63 [#/sec] (mean)
Time per request: 240.236 [ms] (mean)
Time per request: 24.024 [ms] (mean, across all concurrent requests)
Transfer rate: 150.77 [Kbytes/sec] received

Test with 1000 requests in total, 100 concurrency


requests per second: 45.60 [#/sec] (mean)
Time per request: 2193.147 [ms] (mean)
Time per request: 21.931 [ms] (mean, across all concurrent requests)
Transfer rate: 16.63 [Kbytes/sec] received


When apache had over 500 requests the supersvisor had to restart node.js twice.

It seems there it’s a lack of ram serving wordpress pages. Aquí un extracto del top.

DEBUG: Starting child process with ‘node server.js’
2014-03-28T13:41:11.548Z – info: Server starting

top – 13:41:34 up 4:34, 2 users, load average: 69.21, 23.41, 8.75
Tasks: 156 total, 3 running, 151 sleeping, 0 stopped, 2 zombie
%Cpu(s): 12.3 us, 62.4 sy, 0.0 ni, 0.0 id, 11.1 wa, 0.0 hi, 0.0 si, 14.3 st
KiB Mem: 508936 total, 504016 used, 4920 free, 124 buffers
KiB Swap: 0 total, 0 used, 0 free, 776 cached

Requests per second: 6.66 [#/sec] (mean)
Time per request: 15016.069 [ms] (mean)
Time per request: 150.161 [ms] (mean, across all concurrent requests)
Transfer rate: 3.63 [Kbytes/sec] received

node.js with socket.io:

Requests per second: 63.45 [#/sec] (mean)
Time per request: 1575.987 [ms] (mean)
Time per request: 15.760 [ms] (mean, across all concurrent requests)
Transfer rate: 229.80 [Kbytes/sec] received

Y desde luego no se aprecia un uso excesivo de RAM:

KiB Mem: 508936 total, 255440 used, 253496 free, 9208 buffers
KiB Swap: 0 total, 0 used, 0 free, 27152 cached


Test from an ADSL standard connection in spain to a data center in Amsterdam.

speed winners:

1) node.js, low ram, many requests, good concurrency. All winner

2) prestashop, middle throughput

3) wordpress, the slowest, many ram

Benchmark apache / node

Benchmark apache / node

req/sec  = request per sec

tim/rec = time per request

tim/rec2 = time per request mean across all requests

tranfer = Kb transferred

article in progress..

Deja un comentario

Tu dirección de correo electrónico no será publicada.

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>