Docs: Update benchmark for google/gemini-3.1-flash-lite-preview

This commit is contained in:
github-actions[bot]
2026-03-03 22:42:09 +00:00
parent 5e98b8d911
commit 47ccd20b71
12 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
async function findShortestPath(graph, start, end) {
const { MinPriorityQueue } = await import('https://cdn.skypack.dev/@datastructures-js/priority-queue');
const dists = { [start]: 0 };
const pq = new MinPriorityQueue();
pq.enqueue(start, 0);
while (!pq.isEmpty()) {
const { element: u, priority: d } = pq.dequeue();
if (u === end) return d;
if (d > (dists[u] ?? Infinity)) continue;
for (const [v, weight] of Object.entries(graph[u] || {})) {
const alt = d + weight;
if (alt < (dists[v] ?? Infinity)) {
dists[v] = alt;
pq.enqueue(v, alt);
}
}
}
return Infinity;
}
export default findShortestPath;
// Generation time: 1.374s
// Result: FAIL