3 ms·
I'm getting the same experience here by entirely rewriting an old PHP web application [1] in Haskell using the Yesod web framework. I've been using JMeter to b
by raphaelj 14y ago
I'm getting the same experience here by entirely rewriting an old PHP web application [1] in Haskell using the Yesod web framework.
I've been using JMeter to benchmark both versions of the application. On a 10€/month dedicated server [2], the Haskell one was able to generate 220 dynamic pages per second [3] whereas the PHP one tops at 35 pages per second on a equivalent page.
Moreover, concurrence capabilities of Haskell are also pretty sweet : while I was benchmarking the web app using 2,000 concurrent connections, the application server was only using around 90MiB of RAM. I was not able to increase the number of concurrent connections as the client application I was using started to kill my quad core desktop, I suspect Haskell to be able to manage A LOT MORE concurrent connections as I didn't see any decrease in the throughput of the application as I was increasing the number of concurrent connections.
[1] http://files.getwebb.org http://files.getwebb.org
[2] http://www.kimsufi.com/fr/ http://www.kimsufi.com/fr/
[3] Static content has been ignored as modern servers like NGinx seem to be able to carry the static content (CSS, images, ...) at more than 5,000 req/sec on the same machine.