On 12/02/2016 11:58, Rémy Maucherat wrote: > 2016-02-12 12:07 GMT+01:00 Mark Thomas <ma...@apache.org>: > >> On 12/02/2016 10:53, ma...@apache.org wrote: >>> Author: markt >>> Date: Fri Feb 12 10:53:00 2016 >>> New Revision: 1729980 >>> >>> URL: http://svn.apache.org/viewvc?rev=1729980&view=rev >>> Log: >>> Performance optimisation. For a very simple servlet this reduces >> processing time by ~2%. >> >> For the curious, I am measuring performance as follows: >> - latest Java 8 >> - build from clean checkout >> - comment out access log valve >> - set maxKeepAliveRequests to -1 >> - deploy a simple test WAR that includes a Servlet that simply returns >> "Hello, World!" in plain text >> - run ab using: >> ab -k -c 4 -n 2000000 http://localhost:8080/perfTest/SimpleServlet > > > Yes, that's what I used to optimize from 4.1 to 6.0 :) > >> >> Tests running on a fully patched 8-core Windows Server 2008R2 machine >> with nothing else running at the time. >> > > But I didn't use that then ! > >> >> After warm-up, the tests is run 11 times and I am tracking mean and >> standard deviation for each tested configuration. >> > > Hum, well, less is fine as well IMO. This sort of ab test is also very easy > to profile (-k is critical for that).
Generally I agree with you. In this case I just want to be sure when I see a difference that the difference is genuine. So far this is the only place I've managed to find somewhere to squeeze more performance out of the standard processing chain. I've still got a few areas to check but I suspect that there isn't much more to find unless we start doing stuff like moving lesser used features to optional Valves or similar (and I'm not advocating that). Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org