liu.seSearch for publications in DiVA
Change search
ReferencesLink to record
Permanent link

Direct link
Performance Analysis of JavaScript
Linköping University, Department of Computer and Information Science.
2010 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

In the last decade, web browsers have seen a remarkable increase of performance, especially in the JavaScript engines. JavaScript has over the years gone from being a slow and rather limited language, to today have become feature-rich and fast. It’s speed can be around the same or half of comparable code written in C++, but this speed is directly dependent on the choice of the web browser, and the best performance is seen in browsers using JIT compilation techniques.

Even though the language has seen a dramatic increase in performance, there’s still major problems regarding memory usage. JavaScript applications typically consume 3-4 times more memory than similar applications written in C++. Many browser vendors, like Opera Software, acknowledge this and are currently trying to optimize their memory usage. This issue is hopefully non-existent within a near future.

Because the majority of scientific papers written about JavaScript only compare performance using the industry benchmarks SunSpider and V8, this thesis have chosen to widen the scope. The benchmarks really give no information about how JavaScript stands in comparison to C#, C++ and other popular languages. To be able to compare that, I’ve implemented a GIF decoder, an XML parser and various elementary tests in both JavaScript and C++ to compare how far apart the languages are in terms of speed, memory usage and responsiveness.

Place, publisher, year, edition, pages
2010. , 145 p.
Keyword [en]
javascript, performance, performance analysis, benchmark, opera, chrome, internet explorer, firefox, safari, web 2.0, gif decoder, c++, xml parser, memory usage, image decoding, responsiveness, development tools
National Category
Computer Science Computer Engineering
URN: urn:nbn:se:liu:diva-56730ISRN: LIU-IDA/LITH-EX-A--10/020—SEOAI: diva2:321661
2010-05-12, al-Khwarizmi, ADIT, B-huset (ingång 29), Linköpings universitet (campus Valla), Linköping, 20:36 (English)
Available from: 2010-06-29 Created: 2010-06-01 Last updated: 2010-06-29Bibliographically approved

Open Access in DiVA

fulltext(2186 kB)4800 downloads
File information
File name FULLTEXT01.pdfFile size 2186 kBChecksum SHA-512
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Smedberg, Fredrik
By organisation
Department of Computer and Information Science
Computer ScienceComputer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 4800 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 482 hits
ReferencesLink to record
Permanent link

Direct link