```
local start = tick()
for i = 0, 16000000 do
local a = math.pow(8, 2)
local b = math.sqrt(64)
end
print("Done in: " .. tostring(tick() - start))
```

Done in: 7.0318927764893

```
let start = performance.now()
for (let i = 0; i < 16000000; i++){
let a = Math.pow(8, 2)
let b = Math.sqrt(64)
}
let stop = performance.now()
console.log("Done in: " + (stop - start) / 1000)
```

Done in: 4.033

Don’t know if I did this wrong, but that’s what my benchmarks looked like.

But to answer your question, it probably just has to do with the V8 engine being extremely fast - as well as compiling JavaScript into machine code at execution (JIT).