<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Matt Fawcett : Tag node-js, everything about node.js</title>
    <link>http://matthewfawcett.co.uk</link>
    <atom:link type="application/rss+xml" href="http://matthewfawcett.co.uk/tag/node-js.rss" rel="self"/>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Playing with Node.js</title>
      <description>&lt;p&gt;Today I decided to have a look at &lt;a href="http://nodejs.org/"&gt;Node.js&lt;/a&gt;. I have heard quite a lot about it but have avoided looking at it for a while. Node.js provides a way of building server side network programs, written in Javascript. I took a look at a tutorial over at &lt;a href="http://simonwillison.net/2009/Nov/23/node/"&gt;http://simonwillison.net/2009/Nov/23/node/&lt;/a&gt; for installing Node and building a simple Hello World web service. I ran an apache benchmark test and was suprised with the results. I managed to get 6075 requests per second on my Macbook Pro!&lt;/p&gt;

&lt;p&gt;To compare it with something that I'm used to, I wrote the same Hello World script service Sinatra and served it up using the thin webserver, which gave me 1606 requests per second which is quite a difference.&lt;/p&gt;

&lt;p&gt;The 2 scripts and apache benchmark outputs are below:&lt;/p&gt;

&lt;script src="http://gist.github.com/309322.js"&gt;&lt;/script&gt;


</description>
      <pubDate>Fri, 19 Feb 2010 22:47:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:c59ed839-e749-418b-ac71-a1a213773546</guid>
      <comments>http://matthewfawcett.co.uk/2010/02/19/playing-with-node-js#comments</comments>
      <category>node.js</category>
      <category>sinatra</category>
      <link>http://matthewfawcett.co.uk/2010/02/19/playing-with-node-js</link>
    </item>
  </channel>
</rss>
