We conducted our SpMV experiments for C, JavaScript and WebAssembly with 1,952 real-life examples of sparse matrices obtained from The SuiteSparse Matrix Collection (formerly the University of Florida Sparse Matrix Collection) at (https://sparse.tamu.edu). Please find the list of selected input matrices from the collection.
Precision | JavaScript | WebAssembly |
---|---|---|
Single-precision | ![]() |
![]() |
Double-precision | ![]() |
![]() |
RQ2 : Performance comparison and format difference between single- and double-precision for C, JavaScript and WebAssembly
x%-affinity | Single-Precision | Double-Precision |
---|---|---|
10% | ![]() |
![]() |
25% | ![]() |
![]() |
50% | ![]() |
![]() |
ARQ1 : Performance comparison between C and both JavaScript and WebAssembly based on N
Small matrices: N less than 512
Large matrices: N more than 100,000
Precision | Small | Large |
---|---|---|
Single-precision | ![]() |
![]() |
Double-precision | ![]() |
![]() |
Precision | Small | Large |
---|---|---|
Single-precision | ![]() |
![]() |
Double-precision | ![]() |
![]() |