performance of parseInt()
JavaScript performance comparison
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
parseInt(x) |
|
pending… |
parseInt(x, 10) |
|
pending… |
+x |
|
pending… |
~~x |
|
pending… |
parseFloat(x) |
|
pending… |
Number(x) |
|
pending… |
new Number(x) |
|
pending… |
Math.floor(x) |
|
pending… |
Math.ceil(x) |
|
pending… |
Math.round() |
|
pending… |
x-0 |
|
pending… |
x-0.0 |
|
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 GlitchMr
- Revision 6: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published
- Revision 13: published
- Revision 14: published
- Revision 15: published
- Revision 16: published
0 comments