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 Tests running on a fully patched 8-core Windows Server 2008R2 machine with nothing else running at the time. After warm-up, the tests is run 11 times and I am tracking mean and standard deviation for each tested configuration. The JASPIC changes currently increase processing time by ~5%. I am working on reducing that as well as looking for opportunities for improvements elsewhere. To put all of this in context, we are looking at a single request taking between 176 and 186 microseconds to complete. In most real-world applications, the application processing time will be orders of magnitude more than this. While most applications won't notice these improvements (or the impact of adding JASPIC) some will so I do think this exercise is worthwhile. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org