title: Performance Testing Apache vs NodeJs
body: <p>I'm currently testing the performance between Node.js and Apache.</p>
  
  <p>What I want to prove is:</p>
  
  <ul>
  <li>Apache is slower because it needs a lot more Thread-switches than Node.js which uses a single threaded Event-Loop.</li>
  <li>Apache needs a lot more RAM / Connection in comparison with Node.js which uses epoll.</li>
  </ul>
  
  <p>That means, that what I want to test is:</p>
  
  <ol>
  <li>Requests/Second per CPU</li>
  <li>Connections per RAM</li>
  </ol>
  
  <p>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?</p>