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