%@ page session="false" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/benchmark" prefix="benchmark" %>
<%-- -- -- Benchmark example application. Author: Shawn Bayern -- -- NOTE: You might not want to run this page as-is, since it just -- pauses for a number of seconds, and you might think there's -- something wrong with your container. :-) -- --%> <%-- Typically returns between 1000 - 1010 on my system. --%>
Duration of a Thread.sleep(1000ms):
Duration of a Thread.sleep(1000ms) excluding a nested Thread.sleep(1000ms):
Duration of a Thread.sleep(1000ms) excluding a nested Thread.sleep(1000ms),
followed by another Thread.sleep(1000ms):
Duration of a Thread.sleep(1000ms) repeated 5 times:
Duration of repeat 1000 times of nothing:
Duration of repeat 10000 times of nothing: