Update Seconds

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var date = new Date(Date.UTC(2012, 2, 3, 5, 5, 0));
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
New
date = new Date(Date.UTC(2012, 13, 35, 5, 5, 70));
pending…
Set Seconds
date.setUTCSeconds(70);
pending…
Set Days
date.setUTCDate(35);
pending…
Set Months
date.setUTCMonth(13);
pending…
Local Date
date = new Date(2012, 13, 35, 5, 5, 70);
pending…
Local Seconds
date.setSeconds(70);
pending…
Local Days
date.setDate(35);
pending…
Local Months
date.setMonth(13);
pending…

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

Compare results of other browsers

0 comments

Add a comment