JavaScript Performance Through a Spyglass
summary
Explains how JavaScript engines optimize code and why microbenchmarks (like those on jsperf.com) can give misleading or inconsistent results. Covers engine optimization techniques and the pitfalls that make benchmark outcomes unreliable.
AI-written summary · about
chapters (17)
- 0:00Welcome
- 1:00JavaScript engine complexity
- 2:48V8 optimizes array creation
- 4:36Dangers of inlining
- 6:24Benchmarks deceive
- 9:13String ops fool profilers
- 12:05Engine optimizations
- 17:49Smart code wins
- 18:43Myth of slow prototypes
- 21:55V8 handles prototypes
- 24:45Hidden classes speed objects
- 27:59Getters fastest when used
- 29:28Function vs method call
- 31:39for-in loop errors
- 33:11Helping VM devs
- 34:36ES6 arrow functions Q&A
- 36:00Q&A








