Docs: Update benchmark for openrouter/aurora-alpha

This commit is contained in:
github-actions[bot]
2026-02-09 18:45:17 +00:00
parent bb8553e8b0
commit 936cb91590
12 changed files with 245 additions and 0 deletions

View File

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