Math min (v7)

Revision 7 of this benchmark created on


Setup

var i = 65536;
    var arr = [];
    while (i--) arr[i] = Math.random();

Test runner

Ready to run.

Testing in
TestOps/sec
Math.min.apply
var max = 500
var val = Math.min.apply(Math, [480, max]);
ready
Math.min
var max = 500
var val = Math.min(480, max);
ready

Revisions

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