fix number type

This commit is contained in:
Yuheng Yang 2024-06-05 13:04:33 -04:00
parent 604a544978
commit b08e254f2f
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const runs = 10; const runs = 10;
function measureOneLine() { function measureOneLine() {
const LINE_SIZE = 32; // 128/sizeof(int) const LINE_SIZE = 16; // 128/sizeof(double) Note that js treats all numbers as double
let result = []; let result = [];
// Fill with -1 to ensure allocation // Fill with -1 to ensure allocation