strong-tie/inbound-calls
0
1'use strict'2 3var fib = require('./fib')4var max = 1000000005var start = Date.now()6 7// create a funcion with the typical error8// pattern, that delegates the heavy load9// to something else10function createNoCodeFunction () {11 /* eslint no-constant-condition: "off" */12 var num = 10013 14 ;(function () {15 if (null) {16 // do nothing17 } else {18 fib(num)19 }20 })()21}22 23for (var i = 0; i < max; i++) {24 createNoCodeFunction()25}26 27var time = Date.now() - start28console.log('Total time', time)29console.log('Total iterations', max)30console.log('Iteration/s', max / time * 1000)31 