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