tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <>
Subject NIO vs BIO speed
Date Thu, 22 Jun 2006 23:06:09 GMT
I've attached two test runs NIO vs BIO.
The results are very similar, in a regular scenario, blocking IO should 
be a little bit faster, cause it doesn't have to poll, and then hand off 
to a separate thread before reading.
Benefit of the NIO is of course that the number of open sockets are no 
longer limited by thread count.

Remy, can you run your tests again, are you still seeing a huge difference?

Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>>> That's unfortunate.  So regular is better?  What are they doing with 
>>> Grizzly?
>> no, its me :)
>> I need to come up with a non cpu sucking wait algorithm for the wait.
>> once that is fixed, the performance should be close to identical
> For some reason, the performance went down further for me with that 
> patch (although I noticed the CPU is being used properly this time, 
> while before Tomcat was not using all the CPU available).
> Rémy
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


Filip Hanik

View raw message