On Tue, Jul 23, 2024 at 7:15 PM Mark Thomas <ma...@apache.org> wrote: > > Prompted by some folks at $dayjob, I have been looking at the > performance of Tomcat's HTTP/2 implementation using [1] > > Initially, I was seeing ~79k req/s. > > Restoring lazy init for the StreamInputBuffer increased that to ~106k req/s. > > Moving the HttpParser from Processor to Protocol increased that to ~108k > req/s. > > Now I am looking at recycling and reusing the coyote request and > response. That increases throughput to 124k req/s.
Big difference, not surprising it is quite similar to the difference seen with HTTP/1.1 when trying to drop reuse. > Given the significant performance increase I am considering the following: > - switching HTTP/2 to recycle and reuse coyote request and response > objects by default > - providing an option to restore the current behaviour of creating a new > coyote request and response object for every HTTP/2 stream > > Thoughts? +1, great ! Rémy > Mark > > > [1] https://github.com/sdeleuze/spring-boot-http2 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org