Authors:
Gábor Lóki
and
Péter Gál
Affiliation:
Department of Software Engineering, University of Szeged, Dugonics ter 13, 6720, Szeged and Hungary
Keyword(s):
JavaScript, Guidelines, EcmaScript 262, Performance, Embedded.
Abstract:
Programming guidelines are used for almost every programming language. Guidelines can differ for each project and each programmer. In general, however they usually try to give a common format for the given project in some aspect. This aspect can be code style related or even performance related. A performance guideline tries to help programmers formulate such code which can be executed quickly by the computer. For statically compiled languages, numerous performance guidelines are available. In the web era, the JavaScript language is used extensively by many developers. For this language, the performance guidelines are not that widespread, although there are a few research papers about them. Additionally, the language has incorporated new constructs in its newer versions. In this paper, some of the new ECMAScript 6 constructs are investigated to determine if they should be used in a performance sensitive JavaScript application. The elements are compared with the ECMAScript 5.1 variant
s. To give a more usable set of guidelines, the tests are performed on multiple JavaScript engines ranging from server side JS engines to engines which can be used in embedded systems.
(More)