flâneur — a map of the web's best reading

Measuring Time: From Java to Kernel and back - JVM Advent

javaadvent.com · 3,120 words · saved by 1 readers

Even the most basic problems become interesting when you dig deep enough. Today, I would like to do a deep dive into measuring time in Java. We will start with the very basics of the Java API and gradually move lower in our stack: through the OpenJDK source code, glibc, all the way down to the Linux kernel. We will look at the performance overhead in various environments and try to reason about the results. We are going to explore the measurement of the elapsed time: the amount of time that passes from the start-event to the end-event of some activity. This is useful for performance improvements, operational monitoring and timeout enforcement. The following pseudo-code is the common idiom we can see in pretty much any codebase: Sometimes it’s less explicit. We could use Aspect-Oriented Programming principles to avoid polluting our business code with what’s essentially an operational concern, but it’s still there in one form or another. Java offers two basic primitives for measuring tim

Measuring Time: From Java to Kernel and back - JVM Advent Skip to the content Home About Calendar Archive Sponsors Search Home About Calendar Archive Sponsors Search JVM Advent The JVM Programming Advent Calendar December 4, 2019 Measuring Time: From Java to Kernel and back Problem Statement Even the most basic problems become interesting when you dig deep enough. Today, I would like to do a deep dive into measuring time in Java. We will start with the very basics of the Java API and gradually move lower in our stack: through the OpenJDK source code, glibc, all the way down to the Linux kernel

Explore this link on the map →

saved by

related reading