Why is opencv dnn slower if I use Halide?

I am testing the performance of some samples in the opencv source tree depending on if halide is used or not. Surprisingly, the performance is worse if halide is used for the computation: