Check Socko out on GitHub

SOCKO WEB SERVER

Benchmarks for Socko v0.2.0

Published 19 July 2012 by Vibul.

Disclaimer

My benchmarking is not very rigorous - All tests were performed on a single VM on my desktop. Better benchmarking would use several servers. - Only static files download were tested. Better benchmarking should include other scenarios. - I’m not an expert in other web servers and have used their default configuration without optimization

Setup

Test #1 - 87 bytes static file, 100 concurrent users, 500,000 requests

Benchmark

ab -n500000 -c100 <url>

Results

Web Server Time taken for tests Requests per second (mean)
VertX 41.391 seconds 12079.99 [#/sec]
Tomcat 46.029 seconds 10862.63 [#/sec]
Socko 46.139 seconds 10836.92 [#/sec]
Apache 48.777 seconds 10250.74 [#/sec]

Test #2 - 200K static file, 100 concurrent users, 100,000 requests

Benchmark

ab -n100000 -c100 <url>

Results

Web Server Time taken for tests Requests per second (mean)
Socko 18.325 seconds 5457.01 [#/sec]
Apache 18.444 seconds 5421.95 [#/sec]
VertX 19.734 seconds 5067.43 [#/sec]
Tomcat 22.724 seconds 4400.65 [#/sec]

Test #3 - 1MB static file, 100 concurrent users, 20,000 requests

Benchmark

ab -n20000 -c100 <url>

Results

Web Server Time taken for tests Requests per second (mean)
Socko 16.608 seconds 1204.25 [#/sec]
Apache 18.757 seconds 1066.26 [#/sec]
Tomcat 26.123 seconds 765.62 [#/sec]
VertX 35.905 seconds 557.03 [#/sec]

Conclusions

With further optimizations of other web servers, I’m sure they will give better results.

Hence, I’m NOT going to claim that Socko is the fastest server ever.

However, I think we can conclude that Socko is doing OK on the HTTP file download front. Thanks to Netty, I think the throughput is acceptable.

comments powered by Disqus