0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/perf/geo_near1.js

11 lines
210 B
JavaScript

var t = db.bench.geo_near1;
t.drop();
var numPts = 1000 * 1000;
for (var i = 0; i < numPts; i++) {
x = (Math.random() * 100) - 50;
y = (Math.random() * 100) - 50;
t.insert({loc: [x, y], i: i});
}