~/talk

Java Benchmarking: How to Read Two Timestamps!

TalkinRussianat Joker 2014 · 2014-10-20..10-21· [web-performance]
slides:none on file

The talk explains common pitfalls in measuring Java performance and how naive timing (two System.nanoTime() calls) can mislead. It presents methods to obtain meaningful benchmark data and focuses on using Java Microbenchmark Harness (JMH) from OpenJDK as the standard tool for writing and analyzing Java microbenchmarks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Benchmarking purposes
  3. 4:25Engineering approach
  4. 6:54Benchmarking pitfalls
  5. 7:38String creation cost
  6. 9:22Realistic benchmarks
  7. 10:24Baseline selection
  8. 13:55Baselines not absolute
  9. 14:36Performance models
  10. 16:02Direct measurement fails
  11. 17:28Timestamp latency
  12. 19:13Timestamp behavior
  13. 20:17Scaling and interference
  14. 21:46Beyond timestamp limits
  15. 24:17Monotonic time challenges
  16. 26:44Partial code sections
  17. 28:11Thread contention errors
  18. 31:07Fibonacci flaws
  19. 34:00Transient processes
  20. 35:02Comparable design
  21. 36:50Tail recursion myth
  22. 38:56Profiling limits
  23. 41:29Assembly and counters
  24. 42:14Integer division
  25. 44:56JVM pitfalls
  26. 46:28Interpreting results
  27. 47:34Reality vs models
  28. 47:56Conclusion
  29. 51:59Q&A: Simple checks
  30. 53:55Q&A: Validating correctness
  31. 56:31Q&A: Cross-system differences
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.