mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark for openai/gpt-5.1-codex-max
This commit is contained in:
10
tests/11_geospatial/outputs/openai_gpt-5.1-codex-max.js
Normal file
10
tests/11_geospatial/outputs/openai_gpt-5.1-codex-max.js
Normal file
@@ -0,0 +1,10 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const { point, booleanPointInPolygon, lineString, length } = await import('https://cdn.skypack.dev/@turf/turf')
|
||||
const v = readings.filter(r => booleanPointInPolygon(point(r.loc), boundary, { ignoreBoundary: true })).sort((a, b) => a.ts - b.ts)
|
||||
if (v.length < 2) return 0
|
||||
const l = lineString(v.map(r => r.loc))
|
||||
return +length(l, { units: 'kilometers' }).toFixed(2)
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 10.671s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user