From: Chris Duncan Date: Tue, 24 Dec 2024 10:12:37 +0000 (-0800) Subject: Log work value in block perf test. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0a1867435248ca6cf236071ef95190b0c6a95290;p=libnemo.git Log work value in block perf test. --- diff --git a/perf/block.perf.js b/perf/block.perf.js index 33ee012..7793b26 100644 --- a/perf/block.perf.js +++ b/perf/block.perf.js @@ -26,7 +26,7 @@ await suite('Block performance', async () => { await block.pow() const end = performance.now() times.push(end - start) - console.log(`${end - start} ms`) + console.log(`${block.work} (${end - start} ms)`) } const { total, arithmetic, harmonic, geometric } = average(times) console.log(`Total: ${total} ms`)