You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to migrate away from the unmaintained Benchmark.js to this, and while this has almost everything I need, I need a way to introduce artificial delay, because I want to make sure it's actually tracking a fresh new frame each time.
That uses a fairly arbitrary delay, but ideally, this delay would be a function so I could pass it a () => new Promise(resolve => requestAnimationFrame(resolve)) function instead (as that's what I really need in practice).