Date comparison (v2)

Revision 2 of this benchmark created on


Preparation HTML


Setup

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

Test runner

Ready to run.

Testing in
TestOps/sec
Direct comparison
var isAOlderThanB = a < b;
ready
getTime()
var isAOlderThanB = a.getTime() < b.getTime();
ready
valueOf()
var isAOlderThanB = a.valueOf() < b.valueOf();
ready

Revisions

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