Optimization Coaching for JavaScript

Authors Vincent St-Amour, Shu-yu Guo

Thumbnail PDF


  • Filesize: 0.64 MB
  • 25 pages

Document Identifiers

Author Details

Vincent St-Amour
Shu-yu Guo

Cite AsGet BibTex

Vincent St-Amour and Shu-yu Guo. Optimization Coaching for JavaScript. In 29th European Conference on Object-Oriented Programming (ECOOP 2015). Leibniz International Proceedings in Informatics (LIPIcs), Volume 37, pp. 271-295, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2015)


The performance of dynamic object-oriented programming languages such as JavaScript depends heavily on highly optimizing just-in-time compilers. Such compilers, like all compilers, can silently fall back to generating conservative, low-performance code during optimization. As a result, programmers may inadvertently cause performance issues on users' systems by making seemingly inoffensive changes to programs. This paper shows how to solve the problem of silent optimization failures. It specifically explains how to create a so-called optimization coach for an object-oriented just-in-time-compiled programming language. The development and evaluation build on the SpiderMonkey JavaScript engine, but the results should generalize to a variety of similar platforms.
  • Optimization Coaching
  • JavaScript
  • Performance Tools


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads