~/talk

Runtime vs. compile time (JIT vs. AOT) optimizations in Java and C++

Talkat Joker 2017 · 2017-11-03..11-04· [compilers-and-language-design]
slides:none on file

Compares JIT C2 (HotSpot/OpenJDK) vs LLVM clang on identical microbenchmarks using JITWatch, Java Measurement Harness, Google Benchmark and perf, showing concrete generated assembly and timings. Finds clang vectorizes aggressively (main/post loops use 32 integers per cycle or full unrolled constants, giving up to one order of magnitude speedup in a naïve sum), while JIT C2 initially disables vectorization but JDK9 adds 32–64-int ymm vectorization; JIT uses uncommon trap null-checks and can elide locks via escape analysis, while object headers and field reordering cause measurable cache differences.

AI-written summary · about

  1. 0:00Intro
  2. 1:25Talk Motivation
  3. 2:04Key Points
  4. 4:59Compilation Process
  5. 5:52Tests Configuration
  6. 7:07Methodology and Pitfalls
  7. 11:18Sequential sum of N elements array
  8. 17:14JIT Vectorization Loop
  9. 21:11Fields Layout
  10. 29:25Fields Reordering
  11. 31:30Null Checks
  12. 41:24Virtual Calls
  13. 43:42Scalar Replacement
~/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.