Boolean Lookup
JavaScript performance comparison
Info
For compression reasons it might sense to lay out boolean keywords into variables or translate their representation into something shorter. The test is for verifying how much it has negative side effect on the performance.
Preparation code
<script>
var TRUE=true;
var FALSE=false;
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Keywords |
|
pending… |
Closure Vars |
|
pending… |
Boolean Convertion |
|
pending… |
Boolean |
|
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 Sebastian Werner
- Revision 2: published
0 comments