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

This commit is contained in:
github-actions[bot]
2026-06-19 23:14:20 +00:00
parent 3cd4fa5ca6
commit d4ae079fea
12 changed files with 321 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
async function findConvexHull(points) {
const _ = await import('https://esm.sh/lodash');
if (points.length < 3) return _.uniqWith(points, _.isEqual);
const pts = _.sortBy(points, ['x', 'y']);
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);
}
return h;
};
const lower = build(pts);
const upper = build([...pts].reverse());
return _.uniqWith([...lower, ...upper], _.isEqual);
}
export default findConvexHull;
// Generation time: 54.184s
// Result: PASS