]> zoso.dev Git - nano-pow.git/commitdiff
Remove performance logging now that we know GPU is working.
authorChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 20:58:23 +0000 (13:58 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 20:58:23 +0000 (13:58 -0700)
cli.js

diff --git a/cli.js b/cli.js
index 9282ee09ea1b728992e8782dcf107c589c1e0b77..e8e7f3193854ceb1216d2d39163464ac0485a6ab 100755 (executable)
--- a/cli.js
+++ b/cli.js
@@ -42,8 +42,6 @@ for (let i = 0; i < args.length; i++) {
        }
 }
 
-let start = performance.now();
-
 (async () => {
        const NanoPow = await fs.readFile(`${import.meta.dirname}/main.min.js`, 'utf-8')
        const browser = await puppeteer.launch({
@@ -65,7 +63,6 @@ let start = performance.now();
                const output = msg.text().split(' ')
                if (output[0] === 'cli') {
                        if (output[1] === 'exit') {
-                               console.log(performance.now() - start, 'ms', hashes.length, 'hashes')
                                process.exit()
                        } else {
                                console.log(output[1])
@@ -74,7 +71,6 @@ let start = performance.now();
                        console.log(msg.text())
                }
        })
-       start = performance.now()
        await page.waitForFunction(async () => {
                return await navigator.gpu.requestAdapter()
        })