]> zoso.dev Git - libnemo.git/commitdiff
Add basic performance test.
authorChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 11:16:05 +0000 (03:16 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 11:16:05 +0000 (03:16 -0800)
test/perf.mjs [new file with mode: 0644]

diff --git a/test/perf.mjs b/test/perf.mjs
new file mode 100644 (file)
index 0000000..bfc2ae3
--- /dev/null
@@ -0,0 +1,6 @@
+import * as N from '../dist/index.js'
+
+const wallet = N.wallet.generate()
+let now = performance.now()
+const accounts = N.wallet.accounts(wallet.seed, 0, 0x2000)
+console.log(`${-now + (now = performance.now())} ms`)