Small Libevent 2.0 Performance Test
In preparation for CodeCon, Nick and I wanted to see how HTTP performance differs between Libevent 1.4 and Libevent 2.0. HTTP is a good test case as it exercises many of the optimized components. Here is a preliminary result.
The libevent HTTP server is serving 200,000 bytes of content for each request. Apache's benchmark tool ab was used to make 15,000 requests with 40 requests happening in parallel.
In the meantime, Nick is working on making IOCP available for Windows.
The libevent HTTP server is serving 200,000 bytes of content for each request. Apache's benchmark tool ab was used to make 15,000 requests with 40 requests happening in parallel.
- 1.4.10:
Requests per second: 1450.79 [#/sec] (mean) - 2.0:
Requests per second: 1961.99 [#/sec] (mean) - 2.0 (evbuffer_add_reference):
Requests per second: 3979.31 [#/sec] (mean)
In the meantime, Nick is working on making IOCP available for Windows.