Skip to content

Instantly share code, notes, and snippets.

@dmtrKovalenko
Created June 11, 2021 16:16
Show Gist options
  • Save dmtrKovalenko/f793c3a4ddb78c96da27b5d5db05f934 to your computer and use it in GitHub Desktop.
Save dmtrKovalenko/f793c3a4ddb78c96da27b5d5db05f934 to your computer and use it in GitHub Desktop.
// @ts-check
const crypto = require('crypto')
const start = Date.now()
const captureHash = i => {
crypto.pbkdf2("test", "test", 100000, 512, "sha512", () => {
console.log(`capture ${i} at ${Date.now() - start}`)
})
}
for (let i = 0; i < 12; i++) {
captureHash(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment