mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark for google/gemini-3-flash-preview
This commit is contained in:
17
tests/11_geospatial/outputs/google_gemini-3-flash-preview.js
Normal file
17
tests/11_geospatial/outputs/google_gemini-3-flash-preview.js
Normal file
@@ -0,0 +1,17 @@
|
||||
export async function analyzeGPS(readings, boundary) {
|
||||
const T = await import('https://cdn.jsdelivr.net/npm/@turf/turf/+esm');
|
||||
|
||||
const pts = readings
|
||||
.filter(({ loc }) => T.booleanPointInPolygon(loc, boundary))
|
||||
.sort((a, b) => a.ts - b.ts)
|
||||
.map(({ loc }) => loc);
|
||||
|
||||
if (pts.length < 2) return 0;
|
||||
|
||||
const len = T.length(T.lineString(pts), { units: 'kilometers' });
|
||||
|
||||
return Math.round(len * 100) / 100;
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 9.884s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user