Compare julia sum to a cpp implementation - julia is extremely slow?!

It can calculate the sums at compile time