Update Seconds
JavaScript performance comparison
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.
| Test | Ops/sec | |
|---|---|---|
New |
|
pending… |
Set Seconds |
|
pending… |
Set Days |
|
pending… |
Set Months |
|
pending… |
Local Date |
|
pending… |
Local Seconds |
|
pending… |
Local Days |
|
pending… |
Local Months |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments