Docs: Update benchmark for openai/gpt-5.2

This commit is contained in:
github-actions[bot]
2025-12-11 18:42:54 +00:00
parent 0e0b16be72
commit 901bde7c8a
11 changed files with 379 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
let _scryptMod
let _enc = new TextEncoder
let _getScrypt = () =>
_scryptMod ||= import("https://cdn.jsdelivr.net/npm/scrypt-js@3.0.1/+esm")
.then(m => (m.scrypt && m) || m.default || m)
let _toHex = u8 =>
Array.from(u8, b => b.toString(16).padStart(2, "0")).join("")
async function hashPassword(password, salt) {
let { scrypt } = await _getScrypt()
let pw = _enc.encode(password)
let sa = _enc.encode(salt)
let hash = await scrypt(pw, sa, 1024, 8, 1, 32)
return _toHex(hash)
}
export default hashPassword;
// Generation time: 13.034s
// Result: PASS