IIFE with call

JavaScript performance comparison

Test case created by Adam Bankin

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
No IIFE
var t = new Array (1000).join("t");
pending…
IIFE w/o call
(function() {
  var t = new Array (1000).join("t");
})()
pending…
IIFE w/call IIFE
(function() {
  var t = new Array (1000).join("t");
}.call((function() {

})()))
pending…
IIFE w/call Object Literal
(function() {
  var t = new Array (1000).join("t");
}.call({}))
pending…

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

Compare results of other browsers

0 Comments