]> zoso.dev Git - libnemo.git/commitdiff
Match account performance test from upcoming threads update for proper comparison. deps-only
authorChris Duncan <chris@zoso.dev>
Sat, 7 Dec 2024 03:43:59 +0000 (19:43 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 7 Dec 2024 03:43:59 +0000 (19:43 -0800)
test/perf.mjs

index 760be10a70381d5174e02397db0cb11f29007790..697887978e9131ca980306d8fca31987f88e6993 100644 (file)
@@ -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`)