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

This commit is contained in:
github-actions[bot]
2026-09-08 14:30:30 +00:00
parent 16a6e49ab2
commit aab29b41d9
12 changed files with 407 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
export async function findConvexHull(points) {
const { sortBy, uniqWith, isEqual } = await import('https://cdn.jsdelivr.net/npm/lodash-es/+esm');
const pts = sortBy(uniqWith(points, isEqual), ['x', 'y']);
if (pts.length <= 2) return pts;
const cross = (o, a, b) => (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
const buildHull = (pList) => pList.reduce((hull, p) => {
while (hull.length >= 2 && cross(hull[hull.length - 2], hull[hull.length - 1], p) <= 0) {
hull.pop();
}
return hull.push(p), hull;
}, []);
const lower = buildHull(pts);
const upper = buildHull([...pts].reverse());
return lower.slice(0, -1).concat(upper.slice(0, -1));
}
export default findConvexHull;
// Generation time: 25.877s
// Result: PASS