AbstractsComputer Science

Comparing performance between plain JavaScript and popular JavaScript frameworks

by Zlatko Ladan




Institution: Linnæus University
Department:
Year: 2015
Keywords: comparison; programming; frameworks; JavaScript; jQuery; Backbone.js; heap allocation time-line; CPU profile time-line; Engineering and Technology; Electrical Engineering, Electronic Engineering, Information Engineering; Computer Systems; Teknik och teknologier; Elektroteknik och elektronik; Datorsystem; Digital Service Development Programme, 180 hp; Utvecklare av digitala tjänster, 180 hp; Computer Science; Datavetenskap
Record ID: 1360868
Full text PDF: http://urn.kb.se/resolve?urn=urn:nbn:se:lnu:diva-39646


Abstract

JavaScript is used on the web together with HTML and CSS, in many cases using frameworks for JavaScript such as jQuery and Backbone.js. This project is comparing the speed and memory allocation of the programming language JavaScript and its two most used frameworks as well as the language on its own. Since JavaScript is not very fast and it has some missing features or features that differ from browser to browser and frameworks solve this problem but at the cost of speed and memory allocation, the aim is to find out how well JavaScript and the two frameworks jQuery and Backbone.js are doing this on Google Chrome Canary. The results varied (mostly) between the implementations and show that the to-do application is a good enough example to use when comparing the results of heap allocation and CPU time of methods. The results where compared with their mean values and using ANOVA. JavaScript was the fastest, but it might not be enough for a developer to completely stop using frameworks. With JavaScript a developer can choose to create a custom framework, or use an existing one based on the results of this project.