mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-06-28 04:12:13 +00:00
Docs: Update benchmark for anthropic/claude-fable-5
This commit is contained in:
12
tests/11_geospatial/outputs/anthropic_claude-fable-5.js
Normal file
12
tests/11_geospatial/outputs/anthropic_claude-fable-5.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const analyzeGPS = async (readings, boundary) => {
|
||||
const turf = await import('https://cdn.jsdelivr.net/npm/@turf/turf@7/+esm');
|
||||
const pts = readings
|
||||
.filter(r => turf.booleanPointInPolygon(turf.point(r.loc), boundary, {ignoreBoundary: true}))
|
||||
.sort((a, b) => a.ts - b.ts)
|
||||
.map(r => r.loc);
|
||||
if (pts.length < 2) return 0;
|
||||
return Math.round(turf.length(turf.lineString(pts), {units: 'kilometers'}) * 100) / 100;
|
||||
};
|
||||
export default analyzeGPS;
|
||||
// Generation time: 5.576s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user