Docs: Update benchmark for anthropic/claude-sonnet-5 EFF:high

This commit is contained in:
github-actions[bot]
2026-07-01 22:16:12 +00:00
parent 0c2cd5e395
commit 48dfa6cd44
12 changed files with 441 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
async function hashPassword(password, salt) {
const { default: scrypt } = await import('https://cdn.jsdelivr.net/npm/scrypt-js@3.0.1/+esm');
const enc = new TextEncoder();
const passBuf = enc.encode(password);
const saltBuf = enc.encode(salt);
const N = 1024, r = 8, p = 1, dkLen = 32;
const derivedKey = await scrypt(passBuf, saltBuf, N, r, p, dkLen);
return Array.from(derivedKey, b => b.toString(16).padStart(2, '0')).join('');
}
export default hashPassword;
// Generation time: 4.636s
// Result: FAIL