Docs: Update benchmark for openai/gpt-5.2

This commit is contained in:
github-actions[bot]
2025-12-11 18:42:54 +00:00
parent 0e0b16be72
commit 901bde7c8a
11 changed files with 379 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
let turf$;
async function analyzeGPS(readings, boundary) {
turf$ ||= import("https://esm.sh/@turf/turf@6.5.0");
const { point, booleanPointInPolygon, lineString, length } = await turf$;
const coords = (readings || [])
.filter(r => r && Array.isArray(r.loc) && r.loc.length === 2 && Number.isFinite(r.ts))
.filter(r => booleanPointInPolygon(point(r.loc), boundary, { ignoreBoundary: true }))
.sort((a, b) => a.ts - b.ts)
.map(r => r.loc);
if (coords.length < 2) return 0;
const km = length(lineString(coords), { units: "kilometers" });
return +km.toFixed(2);
}
export default analyzeGPS;
// Generation time: 7.395s
// Result: PASS