Docs: Update benchmark for minimax/minimax-m2

This commit is contained in:
github-actions[bot]
2025-12-02 15:05:25 +00:00
parent 2f24697c10
commit 8ab1e91949
11 changed files with 387 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
let _scrypt;
export async function hashPassword(password, salt) {
if (!_scrypt) {
const mod = await import('https://cdn.skypack.dev/scrypt-js');
_scrypt = mod.default || mod.scrypt;
}
const hash = await _scrypt(new TextEncoder().encode(password), new TextEncoder().encode(salt), {
N: 1024,
r: 8,
p: 1,
dkLen: 32
});
return [...hash].map(b => b.toString(16).padStart(2, '0')).join('');
}
export default hashPassword;
// Generation time: 17.866s
// Result: FAIL