mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark for deepseek/deepseek-v3.2
This commit is contained in:
12
tests/11_geospatial/outputs/deepseek_deepseek-v3.2.js
Normal file
12
tests/11_geospatial/outputs/deepseek_deepseek-v3.2.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const analyzeGPS = async (readings, boundary) => {
|
||||
const turf = await import('https://cdn.skypack.dev/@turf/turf');
|
||||
const inside = readings.filter(r => turf.booleanPointInPolygon(turf.point(r.loc), boundary));
|
||||
if (inside.length < 2) return 0;
|
||||
const sorted = inside.sort((a, b) => a.ts - b.ts);
|
||||
const line = turf.lineString(sorted.map(r => r.loc));
|
||||
const length = turf.length(line, { units: 'kilometers' });
|
||||
return Math.round(length * 100) / 100;
|
||||
};
|
||||
export default analyzeGPS;
|
||||
// Generation time: 5.688s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user