-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
let scrypt = require('scryptsy')
let passphrase = Buffer.from('54657374696e674f6e6554776f5468726565', 'hex')
let salt = Buffer.from('e957a24a', 'hex')
function time (f) {
let t0 = new Date().getTime()
f()
console.log((new Date().getTime() - t0) + ' ms')
}
time(() => scrypt(passphrase, salt, 16384, 8, 8, 64))
time(() => scrypt(passphrase, salt, 16384, 8, 8, 64))3058 ms
16034 msResults are consistently 5x on the second call.
Related bitcoinjs/bip38#40 (comment)