~/talk

Java vs CPU — round 2

TalkinPolishat Confitura 2025 · 2025-09-19..09-20· [java, web-performance]
links:none on file
slides:none on file

Compares Java performance at the CPU level using perf counters and shows that relying on JIT alone is misleading: a simple loop achieves ~0.87 IPC but becomes ~2.59 IPC with predictable branches and falls to ~0.5 IPC with random branches, where ~12% branch-mispredicts cause several-times slowdown. Demonstrates that converting branches to branchless conditional moves can cut branch counts from ~1B to ~100k and deliver ~3x speedup; also shows NUMA page migration and TLB shutdown cause global pauses, and that cache-tiling (blocking) cuts load misses by ~70% and restores throughput.

AI-written summary · about

  1. 0:00Java vs CPU
  2. 1:57CPU performance
  3. 6:08Branch impact
  4. 13:50Branchless programming
  5. 21:11NUMA challenges
  6. 36:22Memory access
  7. 44:29CPU tools
  8. 47:21Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.