return !1 vs false

JavaScript performance comparison

Test case created by Greg Van Gorp

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Return !1
return !1;
Return false
return false;

You can edit these tests or add even more tests to this page by appending /edit to the URL.

1 Comment

Greg Van Gorp (revision owner) commented :

I saw minifiers saving a couple characters by switching return false for return !1. Just wondering if there was a difference in performance as well.