Docs: Update benchmark for stealth/union-alpha EFF:high

This commit is contained in:
github-actions[bot]
2026-09-16 16:14:56 +00:00
parent ddcf1af44b
commit 0f704a2f22
12 changed files with 516 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
async function analyzeGPS(readings, boundary) {
const { booleanPointInPolygon, lineString, length } =
await import("https://cdn.jsdelivr.net/npm/@turf/turf@7.2.0/+esm");
const points = readings
.filter(({ loc }) => booleanPointInPolygon(loc, boundary, { ignoreBoundary: true }))
.sort((a, b) => a.ts - b.ts)
.map(({ loc }) => loc);
return points.length < 2
? 0
: +length(lineString(points), { units: "kilometers" }).toFixed(2);
}
export default analyzeGPS;
// Generation time: 53.787s
// Result: PASS