Docs: Update benchmark for anthropic/claude-sonnet-4.6

This commit is contained in:
github-actions[bot]
2026-02-17 22:10:27 +00:00
parent ceeeb7d186
commit 79886a435d
12 changed files with 350 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
async function analyzeGPS(readings, boundary) {
const { default: turf } = await import("https://cdn.skypack.dev/@turf/turf");
const valid = readings
.filter(({ loc }) => turf.booleanPointInPolygon(turf.point(loc), boundary))
.sort((a, b) => a.ts - b.ts);
if (valid.length < 2) return 0;
const line = turf.lineString(valid.map(({ loc }) => loc));
return Math.round(turf.length(line, { units: "kilometers" }) * 100) / 100;
}
export default analyzeGPS;
// Generation time: 2.529s
// Result: FAIL