Build resilient systems at scale
May 27–29, 2015 • Santa Clara, CA

Supersonic JavaScript

Ariya Hidayat (Shape Security)
1:45pm–2:25pm Friday, 05/29/2015
Location: Ballroom GH
Average rating: ***..
(3.44, 9 ratings)
Slides:   external link

Prerequisite Knowledge

Basic knowledge of JavaScript is required.


Analyzing the performance of large-scale JavaScript applications requires a distinct set of tools. It is no longer enough to run various benchmarks by creating loops and measuring the elapsed time. The amazing progress of modern JavaScript engines means that developers should not stress about outdated considerations such as cache array length, avoiding ‘switch’ statements, and using ‘while’ instead of ‘for.’ Understanding the inner workings of the engine itself will reveal the typical code patterns favored for maximum execution speed (short function, fixed object shape, profile-guided, garbage minimization). We will also cover the use of strategies like sampling and tracing, in order to spot performance issues while simultaneously avoiding being trapped in a local maxima.

Photo of Ariya Hidayat

Ariya Hidayat

Shape Security

Ariya Hidayat (@ariyahidayat) is an engineer/technical lead/FOSS fan/blogger/speaker. He is the author of Esprima and PhantomJS. These days, his activities are mostly in software craftsmanship around HTML5, JavaScript, and other web technologies.