Measuring Acceleration of WebGPU for JavaScript

In the field of computer science, optimizing the execution time of computational tasks is essential for enhancing the performance of web applications. This study investigates the performance of WebGPU, a cross-platform graphics API designed for efficient GPU utilization. Traditional JavaScript and JavaScript leveraging WebGPU (JS + WebGPU) are compared for various computational tasks. The primary focus is on matrix multiplication, vector addition, and matrix-vector multiplication, where execution time is a critical factor. Benchmarking tests were conducted to evaluate the execution times of JavaScript and JS + WebGPU across different input sizes. Our measurement results showed for two matrix multiplication operations (2mm), JS + WebGPU exhibited a substantial performance improvement for larger inputs, reducing execution time from 6.836 seconds to 1.227 seconds for large (L) inputs and from 100.78 seconds to 1.621 seconds for extra-large (XL) inputs, compared to JavaScript alone. Similarly, for vector addition, JS + WebGPU outperformed JavaScript significantly for larger inputs, with execution times decreasing from 7.364 seconds to 1.082 seconds for XL inputs. In matrix-vector multiplication, JS + WebGPU also demonstrated superior performance, reducing execution times from 3.291 seconds to 0.752 seconds for L inputs and from 51.358 seconds to 1.011 seconds for XL inputs. These results highlight the potential of WebGPU to enhance computational efficiency, particularly for large-scale operations, by leveraging GPU capabilities. The study's findings suggest that integrating WebGPU with JavaScript can lead to substantial reductions in execution time with input sizes (growth in dimensions of matrices and vectors), offering significant implications for the development of high-performance web applications.

Institutions

Publication Details

Journal
George Mason University
Published
2024-10-09
DOI
https://doi.org/10.13021/jssr2024.4222
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Measuring Acceleration of WebGPU for JavaScript

George Mason University
Parallel Computing and Optimization Techniques
article

Measuring Acceleration of WebGPU for JavaScript

article en

Abstract

In the field of computer science, optimizing the execution time of computational tasks is essential for enhancing the performance of web applications. This study investigates the performance of WebGPU, a cross-platform graphics API designed for efficient GPU utilization. Traditional JavaScript and JavaScript leveraging WebGPU (JS + WebGPU) are compared for various computational tasks. The primary focus is on matrix multiplication, vector addition, and matrix-vector multiplication, where execution time is a critical factor. Benchmarking tests were conducted to evaluate the execution times of JavaScript and JS + WebGPU across different input sizes. Our measurement results showed for two matrix multiplication operations (2mm), JS + WebGPU exhibited a substantial performance improvement for larger inputs, reducing execution time from 6.836 seconds to 1.227 seconds for large (L) inputs and from 100.78 seconds to 1.621 seconds for extra-large (XL) inputs, compared to JavaScript alone. Similarly, for vector addition, JS + WebGPU outperformed JavaScript significantly for larger inputs, with execution times decreasing from 7.364 seconds to 1.082 seconds for XL inputs. In matrix-vector multiplication, JS + WebGPU also demonstrated superior performance, reducing execution times from 3.291 seconds to 0.752 seconds for L inputs and from 51.358 seconds to 1.011 seconds for XL inputs. These results highlight the potential of WebGPU to enhance computational efficiency, particularly for large-scale operations, by leveraging GPU capabilities. The study's findings suggest that integrating WebGPU with JavaScript can lead to substantial reductions in execution time with input sizes (growth in dimensions of matrices and vectors), offering significant implications for the development of high-performance web applications.

George Mason University
George Mason University (US)
Openalex Percentile: Top 47%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Measuring Acceleration of WebGPU for JavaScript · George Mason University (2024) | TGRS Research Map | TGRS