equal vs strict equal
JavaScript performance comparison
Info
Compare the performance of == vs ===
Preparation code
<script>
var a = 0;
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
== 0 |
|
pending… |
=== 0 |
|
pending… |
== '0' |
|
pending… |
=== '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 timmywil
- Revision 2: published by allex_wang
- Revision 3: published
- Revision 4: published by Tim Oxley
1 comment
Related test case: equality operators with the same types