console.time('one');
console.log(8 * 11);
console.timeEnd('one');
console.time('two');
function f(a, b) {
var i,
c = 0;
for (i = 0; i < b; i++) {
c += a;
}
}
f(8, 11);
console.timeEnd('two');
one: 39.38/5.89/4.9/6.18ms
two: 0.24/0.54/0.45/0.46ms