WebAssembly versus JavaScript: Energy and runtime performance

dc.contributor.authorMacedo, João depor
dc.contributor.authorAbreu, Ruipor
dc.contributor.authorPereira, Ruipor
dc.contributor.authorSaraiva, Joãopor
dc.date.accessioned2024-03-28T19:51:50Z
dc.date.available2024-03-28T19:51:50Z
dc.date.issued2022
dc.date.updated2024-03-26T09:01:55Z
dc.description.abstractThe worldwide Web has dramatically evolved in recent years. Web pages are dynamic, expressed by programs written in common programming languages given rise to sophisticated Web applications. Thus, Web browsers are almost operating systems, having to interpret/compile such programs and execute them. Although JavaScript is widely used to express dynamic Web pages, it has several shortcomings and performance inefficiencies. To overcome such limitations, major IT powerhouses are developing a new portable and size/load efficient language: WebAssembly.In this paper, we conduct the first systematic study on the energy and run-time performance of WebAssembly and JavaScript on the Web. We used micro-benchmarks and also real applications in order to have more realistic results. Preliminary results show that WebAssembly, while still in its infancy, is starting to already outperform JavaScript, with much more room to grow. A statistical analysis indicates that WebAssembly produces significant performance differences compared to JavaScript. However, these differences differ between micro-benchmarks and real-world benchmarks. Our results also show that WebAssembly improved energy efficiency by 30%, on average, and showed how different WebAssembly behaviour is among three popular Web Browsers: Google Chrome, Microsoft Edge, and Mozilla Firefox. Our findings indicate that WebAssembly is faster than JavaScript and even more energy-efficient. Additionally, our benchmarking framework is also available to allow further research and replication.por
dc.description.sponsorshipThis work is financed by National Funds through the Portuguese funding agency, FCT -Fundacao para a Ciencia e a Tecnologia within project UIDB/50014/2020. Additionally, this paper acknowledges the support of the Erasmus+ Key Action 2 project No. 2020-1-PT01-KA203-078646: "SusTrainable -Promoting Sustainability as a Fundamental Driver in Software Development Training and Education".por
dc.distributioninternationalpor
dc.identifier.citationDe Macedo, J., Abreu, R., Pereira, R., & Saraiva, J. (2022, June). WebAssembly versus JavaScript: Energy and Runtime Performance. 2022 International Conference on ICT for Sustainability (ICT4S). IEEE. http://doi.org/10.1109/ict4s55073.2022.00014por
dc.identifier.doi10.1109/ICT4S55073.2022.00014por
dc.identifier.isbn9781665482868por
dc.identifier.urihttps://hdl.handle.net/1822/90291
dc.language.isoengpor
dc.peerreviewedyespor
dc.publisherIEEEpor
dc.relationinfo:eu-repo/grantAgreement/FCT/6817 - DCRRNI ID/UIDB%2F50014%2F2020/PTpor
dc.relation.publisherversionhttps://ieeexplore.ieee.org/document/9830108/por
dc.rightsopenAccesspor
dc.subjectEnergy Efficiencypor
dc.subjectGreen Softwarepor
dc.subjectRuntimepor
dc.subjectWebAssemblypor
dc.subjectWeb Browserspor
dc.subject.fosEngenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informáticapor
dc.subject.wosScience & Technology
dc.titleWebAssembly versus JavaScript: Energy and runtime performancepor
dc.typeconferencePaperpor
dspace.entity.typePublicationen
oaire.citationEndPage34por
oaire.citationStartPage24por
sdum.bookTitle2022 INTERNATIONAL CONFERENCE ON ICT FOR SUSTAINABILITY (ICT4S 2022)por
sdum.export.identifier14805

Ficheiros

Pacote original

A mostrar 1 - 1 de 1
A carregar...
Nome:
P-00X-20F.pdf
Tamanho:
447.32 KB
Formato:
Adobe Portable Document Format