IIFE vs Normal function

4 years ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Test name Executions per second
iifeFn 2473.7 Ops/sec
normalFn 1602.3 Ops/sec
Script Preparation code:
Tests:
  • iifeFn

  • normalFn

Open this result on MeasureThat.net