Docs: Update benchmark for google/gemini-3.7-flash EFF:high

This commit is contained in:
github-actions[bot]
2026-08-15 22:47:49 +00:00
parent 0de28d319e
commit bb64a4f756
12 changed files with 428 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
async function findShortestPath(graph, start, end) {
const { default: PriorityQueue } = await import('https://esm.sh/js-priority-queue');
const dist = { [start]: 0 };
const pq = new PriorityQueue({ comparator: (a, b) => a.cost - b.cost });
pq.queue({ node: start, cost: 0 });
while (pq.length) {
const { node, cost } = pq.dequeue();
if (node === end) return cost;
if (cost > dist[node]) continue;
for (const [adj, weight] of Object.entries(graph[node] ?? {})) {
const total = cost + weight;
if (total < (dist[adj] ?? Infinity)) {
dist[adj] = total;
pq.queue({ node: adj, cost: total });
}
}
}
return Infinity;
}
export default findShortestPath;
// Generation time: 10.601s
// Result: PASS