Test date compare

Benchmark created on


Setup

var a = new Date(2013, 11, 12, 1, 2, 3),
    b = new Date(2013, 11, 12, 1, 2, 3);

Test runner

Ready to run.

Testing in
TestOps/sec
plus trick
var equal = +a === +b;
ready
getTime
var equal = a.getTime() === b.getTime();
ready
Substract
var equal = (a - b) === 0;
ready

Revisions

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