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