While profiling a CXF based web service implementation I noticed that a large percentage of CPU time is used by CXF and not by the business logic (more details here: http://www.nabble.com/A-CXF-2.1--CPU-consumption-question-td18404984.html
This raises an interesting question, what percentage of CPU time is it legitimate for a framework to take? Ideally it would leave as much as possible to be used by the business logic while doing the things it needs to do. As there is no such thing as free lunch, the more services it provides the more resources it will use.
To make my question slightly less vague, let’s assume some sort of minimal functionality, in WS case, SOAP messages delivered to/from a service, no authentication, encryption etc... What sort of split of CPU time is it reasonable to expect 90:10? 50:50? 10:90?