Request Animation Frame FPS

Benchmark created by Michal Charemza on


Setup

var count = 0;
    var MAX = 0;
    
    function run(max) {
      MAX = max;
      animate();
    }
    
    function animate() {
      if (count < MAX) {
        count++;
        window.requestAnimationFrame(animate);
      } else {
        deferred.resolve();
      }
    }

Test runner

Ready to run.

Testing in
TestOps/sec
60 frames
// async test
run(60);
ready
120 frames
// async test
run(120);
ready
180 frames
// async test
run(180);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Michal Charemza on