future_ms

Benchmark created on


Setup

function future_ms_old(ms)
{
	var c=new Date();
	    c.setUTCMilliseconds(c.getUTCMilliseconds()+ms);
	return c;
}

function future_ms_new(ms) {
	return new Date(Date.now() + ms);
}

Test runner

Ready to run.

Testing in
TestOps/sec
old
future_ms_old(1000)
ready
new
future_ms_new(1000)
ready

Revisions

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