From b08e254f2fa0a7b0873fee97b14465445bf94b9e Mon Sep 17 00:00:00 2001 From: Yuheng Yang Date: Wed, 5 Jun 2024 13:04:33 -0400 Subject: [PATCH] fix number type --- part1/warmup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part1/warmup.js b/part1/warmup.js index ca66d1b..5bcaf42 100644 --- a/part1/warmup.js +++ b/part1/warmup.js @@ -1,7 +1,7 @@ const runs = 10; 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 = []; // Fill with -1 to ensure allocation