Docs: Update benchmark for anthropic/claude-opus-4.8 EFF:medium

This commit is contained in:
github-actions[bot]
2026-05-31 18:07:47 +00:00
parent 39d0a9f316
commit e5f1b816d1
12 changed files with 413 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
const findConvexHull = async (points) => {
const { default: _ } = await import("https://cdn.skypack.dev/lodash");
const pts = _.sortBy(
_.uniqBy(points, (p) => `${p.x},${p.y}`),
["x", "y"]
);
if (pts.length < 3) return pts;
const cross = (o, a, b) =>
(a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
const build = (arr) => {
const h = [];
for (const p of arr) {
while (h.length >= 2 && cross(h[h.length - 2], h[h.length - 1], p) <= 0)
h.pop();
h.push(p);
}
h.pop();
return h;
};
return [...build(pts), ...build([...pts].reverse())];
};
export default findConvexHull;
// Generation time: 4.735s
// Result: PASS