Skip to content

Commit

Permalink
Increase min samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
kj415j45 committed Aug 9, 2023
1 parent d05fada commit ecaf9c2
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,18 @@ new Promise<void>(async (resolve, reject) => {
let data = await database.queryA(lng, lat);
console.log("%s => %s", database.name(), data);
}
await b.suite("Query A", ...testQueryA(lng, lat), b.cycle(), b.complete());
await b.suite(
"Query A",
b.configure({
cases: {
minSamples: 1000,
maxTime: 30,
},
}),
...testQueryA(lng, lat),
b.cycle(),
b.complete()
);

// Query B case
testPoint = data[Math.floor(Math.random() * data.length)];
Expand All @@ -131,6 +142,12 @@ new Promise<void>(async (resolve, reject) => {
}
await b.suite(
"Query B",
b.configure({
cases: {
minSamples: 1000,
maxTime: 30,
},
}),
...testQueryB(lng, lat, distance),
b.cycle(),
b.complete()
Expand Down Expand Up @@ -161,6 +178,12 @@ new Promise<void>(async (resolve, reject) => {
}
await b.suite(
"Query C",
b.configure({
cases: {
minSamples: 1000,
maxTime: 30,
},
}),
...testQueryC(lng, lat, distance),
b.cycle(),
b.complete()
Expand Down

0 comments on commit ecaf9c2

Please sign in to comment.