mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-05-18 04:32:12 +00:00
Docs: Update benchmark for openai/gpt-5.5 EFF:high
This commit is contained in:
19
tests/11_geospatial/outputs/openai_gpt-5.5 EFF_high.js
Normal file
19
tests/11_geospatial/outputs/openai_gpt-5.5 EFF_high.js
Normal file
@@ -0,0 +1,19 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const turf = await import("https://esm.sh/@turf/turf@7.2.0");
|
||||
|
||||
const valid = readings
|
||||
.filter(({ loc }) =>
|
||||
turf.booleanPointInPolygon(turf.point(loc), boundary, { ignoreBoundary: true })
|
||||
)
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
|
||||
if (valid.length < 2) return 0;
|
||||
|
||||
const line = turf.lineString(valid.map(({ loc }) => loc));
|
||||
const km = turf.length(line, { units: "kilometers" });
|
||||
|
||||
return +km.toFixed(2);
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 13.413s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user