~/talk

How much performance can you get out of JavaScript?

Talkat jsDay 2017 · 2017-05-10..05-11· [javascript, web-performance]
slides:none on file

Shows concrete limits and wins: benchmarks start with Node JS at ~6s versus C++ 1.5s (~4.5×), then fixing array bugs and preallocating brings JS to ~1.3s and C++ to 0.8s, an algorithmic change (stop at sqrt) cuts runtime to ~100ms (≈50×). Explains V8 mechanics — hidden classes, inline caches, ignition and turbofan — and tooling: Node/Chrome profilers and flags. Builds a 2000×2000 cell grid that works in JS but is much faster when memory layout is C++ style or compiled via Emscripten/WebAssembly.

AI-written summary · about

  1. 0:00Start
  2. 2:06A SIMPLE PROBLEM
  3. 4:38HOW MUCH FASTER?
  4. 5:12WE NEED TO BE PREPARED
  5. 7:59HIDDEN CLASSES
  6. 10:11FAST NUMBERS
  7. 14:36OID THE SPEED TRAP
  8. 22:41MORE ENGINES!
  9. 30:22THE OPTIMIZING COMPILER
  10. 33:38DEOPTIMIZATION
  11. 34:30KNOW YOUR TOOLS
  12. 35:00ARE YOU PREPARED?
~/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.