How does servlet performance compare to CGI?
Servlet performance is often far superior to CGI. Rather than forking a new process for each request, a pool of threads can be used to execute servlet requests. Servlets persist across connections, so there’s no need to perform initialization tasks repeatedly. This, when coupled with a fast JVM and servlet engine, can offer better performance than CGI.