Docs: Update benchmark for z-ai/glm-5.1

This commit is contained in:
github-actions[bot]
2026-04-07 18:55:08 +00:00
parent e331b73dae
commit e7b9bb1a9c
12 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
const findConvexHull = async (pts) => {
const _ = await import("https://esm.run/lodash");
const p = _.uniqBy(_.sortBy(pts, ["x", "y"]), p => p.x + "," + p.y);
if (p.length < 3) return p;
const c = (o, a, b) => (a.x - o.x) * (b.y - o.y) - (a.y - o.y) * (b.x - o.x);
const h = [];
for (const pt of p) {
while (h.length >= 2 && c(h.at(-2), h.at(-1), pt) <= 0) h.pop();
h.push(pt);
}
const l = h.length + 1;
for (let i = p.length - 2; i >= 0; i--) {
while (h.length >= l && c(h.at(-2), h.at(-1), p[i]) <= 0) h.pop();
h.push(p[i]);
}
h.pop();
return h;
};
export default findConvexHull;
// Generation time: 35.612s
// Result: FAIL