mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-07-18 05:45:46 +00:00
Docs: Update benchmark for x-ai/grok-4.5
This commit is contained in:
9
tests/11_geospatial/outputs/x-ai_grok-4.5.js
Normal file
9
tests/11_geospatial/outputs/x-ai_grok-4.5.js
Normal file
@@ -0,0 +1,9 @@
|
||||
async function analyzeGPS(readings,boundary){
|
||||
const{booleanPointInPolygon:i,lineString:l,length:e}=await import('https://esm.sh/@turf/turf@7.1.0');
|
||||
const v=readings.filter(r=>i(r.loc,boundary,{ignoreBoundary:true})).sort((a,b)=>a.ts-b.ts);
|
||||
if(v.length<2)return 0;
|
||||
return+e(l(v.map(r=>r.loc)),{units:'kilometers'}).toFixed(2)
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 14.349s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user