Loop Counter
JavaScript performance comparison
Info
check += against +
Preparation code
<script>
var l_count1 = 0;
var l_count2 = 0;
var l_count3 = 0;
var l_count4 = 0.5;
var l_count5 = 0.5;
var l_count6 = 0.5;
var l_count7 = 4294967296;
var l_count8 = 4294967296;
var l_count9 = 4294967296;
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
int += 1 |
|
pending… |
int + 1 |
|
pending… |
int++ |
|
pending… |
float += 1 |
|
pending… |
float + 1 |
|
pending… |
float++ |
|
pending… |
bigint += 1 |
|
pending… |
bigint + 1 |
|
pending… |
bigint++ |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Alistair
- Revision 2: published
- Revision 3: published
- Revision 4: published
- Revision 5: published by wildcard
- Revision 6: published by wildcard
- Revision 7: published by Alistair
- Revision 11: published by Ben Blank
- Revision 12: published
- Revision 13: published
0 comments