Created
October 15, 2021 03:07
-
-
Save fukaoi/c659831aa912aeb97298b8d83fd5c1da to your computer and use it in GitHub Desktop.
Bench tool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Wallet} from "./src/"; | |
(() => { | |
console.log("start"); | |
const starttime = Date.now(); | |
let arr = []; | |
while (true) { | |
arr.push(Wallet.create()); | |
if (arr.length == 500) { | |
console.log(`${(Date.now() - starttime) / 1000}/sec`); | |
console.log("end"); | |
break; | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment