|
COMPUTER SOFTWARE AND COMPUTING EQUIPMENT
Studying WebAssembly and comparison of its performance with JavaScript
V. V. Rokotianskayaa, V. S. Abramovb a Russian Timiryazev State Agrarian University, Moscow, Russia
b ITMO University, Saint-Petersburg, Russia
Abstract:
Over the long history of the Internet, JavaScript has been the primary programming language in web development. Because of its simple syntax and support in all popular browsers, the language has gained popularity among the developers. However, as computer power and user demands evolved, simple sites turned into the web applications that are full-fledged analogues of the desktop applications. As capabilities grew, so did the performance requirements of such programs. Browser engines have developed ways to optimize the code they run, and intense competition between browsers has contributed to a qualitative increase in performance. Despite all the ways to increase the speed of execution of JavaScript code, the main stopping factor was the dynamic typing of the language. Because of dynamic typing, the browser engine needs to check each time the program is executed whether the variable is an integer, a float, or any other valid type. Thus, each JavaScript instruction has to go through several type checks and conversions, which slows down the execution. This led to the idea of using languages with strict typing, which could compensate for this drawback. But the browser engines cannot execute the code of other languages, that is why there appeared the technology WebAssembly. It allows writing code in languages with static typing, and then parses it into a more native and machine-readable format, which speeds up execution of programs compared to JavaScript. The technology is cross-platform and supports the main programming languages: C++, C, Java, C#. WebAssembly is also implemented using JavaScript, which allows to use the concise JavaScript syntax and computing power of WebAssembly together.
Keywords:
web technologies, JavaScript, WebAssembly, performance, browser, the speed of the application.
Received: 07.03.2023 Accepted: 19.04.2023
Citation:
V. V. Rokotianskaya, V. S. Abramov, “Studying WebAssembly and comparison of its performance with JavaScript”, Vestn. Astrakhan State Technical Univ. Ser. Management, Computer Sciences and Informatics, 2023, no. 2, 93–100
Linking options:
https://www.mathnet.ru/eng/vagtu756 https://www.mathnet.ru/eng/vagtu/y2023/i2/p93
|
Statistics & downloads: |
Abstract page: | 70 | Full-text PDF : | 25 | References: | 9 |
|