Docs: Update benchmark for google/gemini-3.1-flash-lite-preview

This commit is contained in:
github-actions[bot]
2026-03-03 22:42:09 +00:00
parent 5e98b8d911
commit 47ccd20b71
12 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
async function analyzeGPS(readings, boundary) {
const { booleanPointInPolygon, lineString, length } = await import('https://cdn.skypack.dev/@turf/turf');
const valid = readings
.filter(r => booleanPointInPolygon(r.loc, boundary))
.sort((a, b) => a.ts - b.ts);
if (valid.length < 2) return 0;
const dist = length(lineString(valid.map(r => r.loc)), { units: 'kilometers' });
return +dist.toFixed(2);
}
export default analyzeGPS;
// Generation time: 1.377s
// Result: PASS