mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-06-08 04:22:13 +00:00
Docs: Update benchmark for google/gemini-3.5-flash
This commit is contained in:
15
tests/11_geospatial/outputs/google_gemini-3.5-flash.js
Normal file
15
tests/11_geospatial/outputs/google_gemini-3.5-flash.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export async function analyzeGPS(readings, boundary) {
|
||||
const { booleanPointInPolygon: inPoly, point, lineString, length } =
|
||||
await import('https://cdn.jsdelivr.net/npm/@turf/turf/+esm');
|
||||
|
||||
const pts = readings
|
||||
.filter(r => inPoly(point(r.loc), boundary))
|
||||
.sort((a, b) => a.ts - b.ts);
|
||||
|
||||
return pts.length < 2
|
||||
? 0
|
||||
: +length(lineString(pts.map(r => r.loc))).toFixed(2);
|
||||
}
|
||||
export default analyzeGPS;
|
||||
// Generation time: 8.770s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user