Speed Comparison Python v Julia for custom layers

Why? Is it for safety reasons, or limitation of the compiler?