MCPcopy Create free account
hub / github.com/Stuk/jszip / waitForBenchmark

Function waitForBenchmark

test/run.js:83–95  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

81}
82
83async function waitForBenchmark(page) {
84 return new Promise(resolve => {
85 const logs = [];
86
87 page.on("console", async message => {
88 if (message.text() === "Benchmark complete") {
89 resolve(logs);
90 } else {
91 logs.push(message.text());
92 }
93 });
94 });
95}
96
97async function runBenchmark() {
98 const results = await runBrowsers(waitForBenchmark, "benchmark/index.html");

Callers

nothing calls this directly

Calls 1

onMethod · 0.80

Tested by

no test coverage detected