mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for minimax/minimax-m2.5
This commit is contained in:
8
tests/11_geospatial/outputs/minimax_minimax-m2.5.js
Normal file
8
tests/11_geospatial/outputs/minimax_minimax-m2.5.js
Normal file
@@ -0,0 +1,8 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const{booleanPointInPolygon,point,lineString,length}=await import('https://cdn.jsdelivr.net/npm/@turf/turf@6/+esm');
|
||||
const v=readings.filter(r=>booleanPointInPolygon(point(r.loc),boundary)).sort((a,b)=>a.ts-b.ts);
|
||||
return v.length<2?0:Math.round(length(lineString(v.map(r=>r.loc)),{units:'kilometers'})*100)/100;
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 45.041s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user