test performance

JavaScript performance comparison

Revision 2 of this test case created

Info

test if switching operandes order, have consequences under performances

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
var1 first (==)
var myvar1 = "hello";
if (myvar1 == "hello"){
    console.log("ok");
}
 
pending…
chain first (==)
var myvar1 = "hello";
if ("hello" == myvar1){
    console.log("ok");
}
 
pending…
var1 first (===)
var myvar1 = "hello";
if (myvar1 === "hello"){
    console.log("ok");
}
 
pending…
chain first (===)
var myvar1 = "hello";
if ("hello" === myvar1){
    console.log("ok");
}
 
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:

0 comments

Add a comment