Check Socko out on GitHub

SOCKO WEB SERVER

Initial Benchmarks for Socko v0.1.0

Published 22 April 2012 by Vibul.

Setup

Test 1. 1MB static file, 100 concurrent users, 10,000 requests

Benchmark

ab -n10000 -c100 <url>

Results

Web Server Time taken for tests Requests per second (mean)
Apache 8.301 seconds 1204.72 [#/sec]
Socko 10.666 seconds 937.55 [#/sec]
Tomcat 19.409 seconds 515.22 [#/sec]

Test 2. Dynamic content, 100 concurrent users, 100,000 requests

Benchmark

ab -n100000 -c100 <url>

Results

Web Server Time taken for tests Requests per second (mean)
Socko 16.649 seconds 6006.39 [#/sec]
Tomcat 22.347 seconds 4474.82 [#/sec]

Tomcat JSP used in the test

<%@page session="false" contentType="text/html; charset=UTF-8" %>
<html>
<body>
Hello
</body>
</html>

Conclusion

These are very early tests.

It seems Socko is a little faster than Tomcat for static and dynamic content.

However, Socko is a little slower than Apache for static content.

I have noticed that Tomcat caches small files so that is something we will do for Socko v0.2. Once in memory caching has been implemented, we will re-test for smaller static files of size.

comments powered by Disqus