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). Rémy