Measuring the True Cost of Abstractions in JavaScript
summary
Compares performance of JavaScript abstractions like reduce, map, forEach across different datasets by building a three-level analysis: inspect V8 source (Torque and C++), examine the generated bytecode, and then run measurements with Benchmark. Presents concrete comparisons of how various JS methods handle the same tasks in terms of speed.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 2:48Disclaimer
- 6:04Quiz results
- 13:54Spread vs Object.assign
- 14:16indexOf is slow
- 20:57find is slow
- 21:17For vs find vs includes
- 25:12V8 optimizes built-ins
- 35:32Real data tests
- 37:42Optimization tips
- 38:04Q&A
related talks
39mHow much performance can you get out of Javascript?
41mBenchmarking JavaScript
34mUnderstanding JavaScript Performance
29mExtreme JavaScript Performance
27mThe Life of a JavaScript Feature in V8 ft. TypedArrays
16mJavaScript & Metaperformance
46m10 secrets to improve Javascript Performance
40mA Tale of Types, Classes, and Maps
