From 9005a36fb55b63653e958b61353720e7c7a8c7e6 Mon Sep 17 00:00:00 2001 From: yanzyang <69023174+yzyangyh@users.noreply.github.com> Date: Wed, 16 Nov 2022 14:50:56 +0800 Subject: [PATCH] log --- docs/webcpu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/webcpu.js b/docs/webcpu.js index 5c80f83..912d9c4 100644 --- a/docs/webcpu.js +++ b/docs/webcpu.js @@ -227,7 +227,7 @@ var webcpu = (function (exports) { workers.push(await this._initWorker(wasmModule)); await this._testWorkers(workers, loops); baseStats = await this._testWorkers(workers, loops); - console.log('baseStats = ', baseStats); + console.log('baseStats = ', JSON.stringify(baseStats)); if (hardcore) { this._killWorkers(workers); @@ -246,7 +246,7 @@ var webcpu = (function (exports) { promises.length = 0; const stats = await this._testWorkers(workers, loops); - console.log('stats = ', stats); + console.log('stats = ', JSON.stringify(stats)); if (!this._areAllCoresValid(baseStats, stats, 0.9)) { console.log('_areAllCoresValid = false, thresholdCount = ', thresholdCount, ", threadCount = ", threadCount); --threadCount;