[hunchentoot-devel] thread pool benchmark results

Anton Vodonosov avodonosov at yandex.ru
Fri Jul 18 01:00:46 UTC 2008


Hello.

I have set up a little benchmark to test ithow
thread pool may improve the hunchentoot performance.

In two words it looks useful. Details are below.

I'm running hunchentoot on a linux VPS with
360 MB of memory, SBCL 1.0.11.

It serves little html-template page, the template
is filled from an in-memory object.

Testing is performed by the AbacheBench tool:
  ab -c 10 -n 10000 http://localhost:4242/view-order?order-id=1

-n 10000 means total number of requests is 10000
-c 10 means that the requests are issued by 10 concurrent threads

Result for the unmodified hunchentoot 0.15.7 was
163 requests per second.

For slightly modified version with thread pool it was
1295 request per second.

Full AbacheBench reports for the both versions are
attached.

Patch for port-sbcl.lisp with the simple thread pool
implementation is also attached. It is against 0.15.7,
sorry it's not for the current development version of
hunchentoot, but I created this thead pool code about
half a year ago.

Best regards,
-Anton
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pooled.txt
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20080718/4f0e9e8e/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: port-sbcl.diff
Type: application/octet-stream
Size: 5045 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20080718/4f0e9e8e/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nonpooled.txt
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20080718/4f0e9e8e/attachment-0001.txt>


More information about the Tbnl-devel mailing list