mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for anthropic/claude-sonnet-4.6
This commit is contained in:
15
tests/11_geospatial/outputs/anthropic_claude-sonnet-4.6.js
Normal file
15
tests/11_geospatial/outputs/anthropic_claude-sonnet-4.6.js
Normal file
@@ -0,0 +1,15 @@
|
||||
async function analyzeGPS(readings, boundary) {
|
||||
const { default: turf } = await import("https://cdn.skypack.dev/@turf/turf");
|
||||
|
||||
const valid = readings
|
||||
.filter(({ loc }) => turf.booleanPointInPolygon(turf.point(loc), boundary))
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
|
||||
if (valid.length < 2) return 0;
|
||||
|
||||
const line = turf.lineString(valid.map(({ loc }) => loc));
|
||||
return Math.round(turf.length(line, { units: "kilometers" }) * 100) / 100;
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 2.529s
|
||||
// Result: FAIL
|
||||
Reference in New Issue
Block a user