From 17b333e9f8fa0a36f9b2c75429e2599dd0432f43 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 1 Dec 2024 19:01:05 -0800 Subject: [PATCH] Add perf logging to test webpage. --- test.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.html b/test.html index 1f13a6e..91262c1 100644 --- a/test.html +++ b/test.html @@ -7,7 +7,9 @@ const bipWallet = await libnemo.Bip44Wallet.create('test') await bipWallet.unlock('test') console.log(bipWallet.mnemonic) + let now = performance.now() const bipAccounts = await bipWallet.accounts(0, 0x2000) + console.log(`bip44 done: ${performance.now() - now} ms`) const bipAccount = bipAccounts[0] console.log(bipAccount.privateKey) console.log(bipAccount.publicKey) @@ -17,7 +19,9 @@ const blakeWallet = await libnemo.Blake2bWallet.create('test') await blakeWallet.unlock('test') console.log(blakeWallet.mnemonic) + now = performance.now() const blakeAccounts = await blakeWallet.accounts(0, 0x2000) + console.log(`blake2b done: ${performance.now() - now} ms`) const blakeAccount = blakeAccounts[0] console.log(blakeAccount.privateKey) console.log(blakeAccount.publicKey) -- 2.34.1