JIT compilers can outperform statically compiled code by analysing at run time exactly what branches are taken and then optimising based on that.