From: Chris Duncan Date: Sat, 7 Dec 2024 03:43:59 +0000 (-0800) Subject: Match account performance test from upcoming threads update for proper comparison. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ee08f7f9ea5401f77b630f735ef41b21d8b66635;p=libnemo.git Match account performance test from upcoming threads update for proper comparison. --- diff --git a/test/perf.mjs b/test/perf.mjs index 760be10..6978879 100644 --- a/test/perf.mjs +++ b/test/perf.mjs @@ -3,11 +3,11 @@ import * as N from '../dist/index.js' console.log(`wallet...`) const wallet = N.wallet.generate() let now = performance.now() -N.wallet.accounts(wallet.seed, 0, 0x2000) +N.wallet.accounts(wallet.seed, 0, 0x7fff) console.log(`${performance.now() - now} ms`) console.log(`wallet legacy...`) const walletLegacy = N.wallet.generateLegacy() now = performance.now() -N.wallet.legacyAccounts(walletLegacy.seed, 0, 0x2000) +N.wallet.legacyAccounts(walletLegacy.seed, 0, 0x7fff) console.log(`${performance.now() - now} ms`)