I'm currently testing the performance between Node.js and Apache.
What I want to prove is:
- Apache is slower because it needs a lot more Thread-switches than Node.js which uses a single threaded Event-Loop.
- Apache needs a lot more RAM / Connection in comparison with Node.js which uses epoll.
That means, that what I want to test is:
- Requests/Second per CPU
- Connections per RAM
Ok that's what I want to do! But the question is HOW I should do this? For the Request/second-Test I could just use the Apache Benchmark (ab) (But is ab even suitable for Node.js?) And the biggest question is: How can I test the Connections/RAM?