Docs: Update benchmark for z-ai/glm-5.1

This commit is contained in:
github-actions[bot]
2026-04-07 18:55:08 +00:00
parent e331b73dae
commit e7b9bb1a9c
12 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
async function findShortestPath(g, s, e) {
const { default: PQ } = await import('https://cdn.jsdelivr.net/npm/js-priority-queue/+esm');
const q = new PQ({ comparator: (a, b) => a[1] - b[1] });
const d = { [s]: 0 };
q.queue([s, 0]);
while (q.length) {
const [n, c] = q.dequeue();
if (n === e) return c;
if (c > (d[n] ?? 1/0)) continue;
for (const nb in g[n] || {}) {
const nd = c + g[n][nb];
if (nd < (d[nb] ?? 1/0)) {
d[nb] = nd;
q.queue([nb, nd]);
}
}
}
return d[e] ?? 1/0;
}
export default findShortestPath;
// Generation time: 39.949s
// Result: PASS