asynchronous timeout

Benchmark created on


Setup

var array = []
    for ( var i = 0; i < 99999; i++ ) {
      array.push( i )
    }
    
    var add = function ( numbers ) {
      numbers.reduce( function ( prev, num ) {
        return prev + num
      }, 0 )
    }

Test runner

Ready to run.

Testing in
TestOps/sec
pure function
add( array )
ready
settimeout
setTimeout( add, 0, array )
ready

Revisions

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