~/talk

Speed, Speed, Speed: Javascript vs C++ vs WebAssembly

Talkat NodeConf Argentina 2018 · 2018-10-18..10-20· [javascript, webassembly]
links:none on file
slides:none on file

Compares actual runtimes: computes 1,000,000 primes in JavaScript, C++ and WebAssembly and reports JavaScript within a small constant factor of C++ thanks to JIT feedback and baseline and optimizing compilers that use per-call-site caches and deoptimization. Disabling optimization yields 80s vs 10s (JS vs C++) so the optimizer matters. WebAssembly sits between C++ and JS with slight overhead; native C++ is still fastest but JS often reaches near-native speed.

AI-written summary · about

  1. 0:00JavaScript performance intro
  2. 1:50Premature optimization
  3. 3:59JS vs C++ typing
  4. 7:11Prime number speed
  5. 8:14JS engine performance
  6. 10:28Just-in-time compilation explained
  7. 13:19Baseline and optimizing compilers in JavaScript
  8. 14:25Optimizing property lookups
  9. 18:45Machine code comparison
  10. 20:51JS compiler impact
  11. 22:41Small vs large speed
  12. 23:43When to use C++ or JavaScript for performance
  13. 24:46WebAssembly discussion
  14. 25:50WebAssembly vs C++ vs JavaScript performance
  15. 26:11Summary
~/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.