Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions e2e/benchmarks/browserstack-benchmark/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ async function benchmarkAll(config) {
}
}
console.log('\nAll benchmarks complete!');
endFirebaseInstance();
return allResults;
}

Expand Down Expand Up @@ -168,9 +167,9 @@ async function benchmark(config, runOneBenchmark = getOneBenchmarkResult) {
for (const tabId in config.browsers) {
results.push(promiseQueue.add(() => {
return runOneBenchmark(tabId, cliArgs?.maxTries).then((value) => {
value.deviceInfo = config.browsers[tabId];
value.modelInfo = config.benchmark;
return value;
value.deviceInfo = config.browsers[tabId];
value.modelInfo = config.benchmark;
return value;
});
}));
}
Expand Down Expand Up @@ -404,6 +403,9 @@ async function prebenchmarkSetup() {
`Please provide a valid path.`);
}
}
if (cliArgs.firestore) {
endFirebaseInstance();
}
}

/* Only run this code if app.js is called from the command line */
Expand Down