mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-04-27 19:52:14 +00:00
Docs: Update benchmark for anthropic/claude-opus-4.7 EFF:medium
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const analyzeGPS = async (readings, boundary) => {
|
||||
const turf = await import('https://cdn.skypack.dev/@turf/turf');
|
||||
const valid = readings
|
||||
.filter(r => turf.booleanWithin(turf.point(r.loc), boundary))
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
if (valid.length < 2) return 0;
|
||||
const line = turf.lineString(valid.map(r => r.loc));
|
||||
return Math.round(turf.length(line, { units: 'kilometers' }) * 100) / 100;
|
||||
};
|
||||
export default analyzeGPS;
|
||||
// Generation time: 3.035s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user