Skip to content

Instantly share code, notes, and snippets.

@fukaoi
Created October 15, 2021 03:07
Show Gist options
  • Save fukaoi/c659831aa912aeb97298b8d83fd5c1da to your computer and use it in GitHub Desktop.
Save fukaoi/c659831aa912aeb97298b8d83fd5c1da to your computer and use it in GitHub Desktop.
Bench tool
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