mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark for x-ai/grok-4.1-fast
This commit is contained in:
6
tests/11_geospatial/outputs/x-ai_grok-4.1-fast.js
Normal file
6
tests/11_geospatial/outputs/x-ai_grok-4.1-fast.js
Normal file
@@ -0,0 +1,6 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const { point: p, booleanPointInPolygon: i, lineString: s, length: l } = await import('https://esm.sh/@turf/turf@6');
|
||||
const v = readings.filter(r => i(p(r.loc), boundary)).sort((a, b) => a.ts - b.ts);
|
||||
return v.length < 2 ? 0 : +l(s(v.map(r => r.loc))).toFixed(2);
|
||||
}
|
||||
export default analyzeGPS;
|
||||
Reference in New Issue
Block a user