mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-13 16:17:54 +00:00
Docs: Update benchmark for z-ai/glm-4.7
This commit is contained in:
14
tests/11_geospatial/outputs/z-ai_glm-4.7.js
Normal file
14
tests/11_geospatial/outputs/z-ai_glm-4.7.js
Normal file
@@ -0,0 +1,14 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const t = await import('https://cdn.jsdelivr.net/npm/@turf/turf/+esm');
|
||||
|
||||
const valid = readings
|
||||
.filter(r => t.booleanPointInPolygon(t.point(r.loc), boundary))
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
|
||||
if (valid.length < 2) return 0;
|
||||
|
||||
return +(t.length(t.lineString(valid.map(v => v.loc)), { units: 'kilometers' })).toFixed(2);
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 60.849s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user