Docs: Update benchmark for minimax/minimax-m2.1

This commit is contained in:
github-actions[bot]
2025-12-23 02:41:05 +00:00
parent 4d1b1b44a4
commit 3983c8eb1a
11 changed files with 315 additions and 0 deletions

View File

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