mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for openrouter/pony-alpha
This commit is contained in:
11
tests/11_geospatial/outputs/openrouter_pony-alpha.js
Normal file
11
tests/11_geospatial/outputs/openrouter_pony-alpha.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const analyzeGPS = async (readings, boundary) => {
|
||||
const t = await import('https://esm.sh/@turf/turf');
|
||||
const pts = readings
|
||||
.filter(r => t.booleanPointInPolygon(t.point(r.loc), boundary))
|
||||
.sort((a, b) => a.ts - b.ts)
|
||||
.map(r => r.loc);
|
||||
return pts.length < 2 ? 0 : Math.round(t.length(t.lineString(pts)) * 100) / 100;
|
||||
};
|
||||
export default analyzeGPS;
|
||||
// Generation time: 93.284s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user