From fda3009c79ff1da4cc0e900359ff0e30b44e710b Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 29 Nov 2024 03:16:05 -0800 Subject: [PATCH] Add basic performance test. --- test/perf.mjs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/perf.mjs diff --git a/test/perf.mjs b/test/perf.mjs new file mode 100644 index 0000000..bfc2ae3 --- /dev/null +++ b/test/perf.mjs @@ -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`) -- 2.34.1