Docs: Update benchmark for moonshotai/kimi-k2.5

This commit is contained in:
github-actions[bot]
2026-01-28 02:13:45 +00:00
parent 0aa1b6e96e
commit 0f6d112bfb
11 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const findShortestPath = async (g, s, e) => {
const { default: Q } = await import('https://esm.sh/js-priority-queue');
const d = {}, q = new Q({ comparator: (a, b) => a[0] - b[0] });
for (const k in g) d[k] = 1/0;
d[s] = 0;
q.queue([0, s]);
while (q.length) {
const [c, u] = q.dequeue();
if (u === e) return c;
if (c > d[u]) continue;
for (const v in g[u] || {}) {
const t = c + g[u][v];
if (t < d[v]) {
d[v] = t;
q.queue([t, v]);
}
}
}
return 1/0;
};
export default findShortestPath;
// Generation time: 56.044s
// Result: FAIL