]> zoso.dev Git - libnemo.git/commitdiff
Log work value in block perf test.
authorChris Duncan <chris@zoso.dev>
Tue, 24 Dec 2024 10:12:37 +0000 (02:12 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 24 Dec 2024 10:12:37 +0000 (02:12 -0800)
perf/block.perf.js

index 33ee012e75c39ff34f97614f31c08310257d62f1..7793b2652c7387f1e1023ccddb032965df302387 100644 (file)
@@ -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`)