https://bz.apache.org/bugzilla/show_bug.cgi?id=56966

--- Comment #6 from Mark Thomas <ma...@apache.org> ---
System.nanoTime() is approximately 40x slower than System.currentTimeMillis().
On my machine the equates to the difference between ~600ns and ~15ns per call.

Duration requires a start and an end time. So that is ~1.2μs. On the same
machine a basic request with access logging takes ~30μs so switching to ns
precision adds approximately 4% of overhead. That is a fair amount overhead.

It is worth checking the timings on a more modern machine (I'll do that
shortly) before making any decisions on this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to