Clone in a terminal:
adapter.js
benchmarks/ - Morebench marks, speed this time
const READY_TIMEOUT_MS = 30_000;

export async function signalBenchmarkReady() {
    const startedAt = performance.now();

    while (!document.getElementById("counter")) {
        if (performance.now() - startedAt > READY_TIMEOUT_MS) {
            throw new Error("Counter benchmark did not render within 30 seconds");
        }

        await new Promise((resolve) => requestAnimationFrame(resolve));
    }

    await new Promise((resolve) => requestAnimationFrame(resolve));
    window.parent.postMessage({ type: "benchmark:ready" }, window.location.origin);
}

File history (1 commits)

ed76499 Johan Mattsson - johan.mattsson.m@gmail.com
Morebench marks, speed this time
Morebench marks, speed this time

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112