'The time to set two array element seems to be more expensive than
the overhead of the overloaded call.'

def test_array_overhead(self):

    cr = compiler.compile_isolated(array_overhead, [types.int32[::1]])
    cfunc = cr.entry_point
    disp = registry.CPUDispatcher(array_overhead)
    disp.add_overload(cr)
    self.assertEqual(cr.signature.args[0].layout, 'C')
    x = np.zeros(shape=2, dtype='int32')
    def python():
        array_overhead(x)
    def pycfunc():
        cfunc(x)
    def overloaded():
        disp(x)
    print(array_overhead)
    print(utils.benchmark(python, maxsec=0.5))
    print(utils.benchmark(pycfunc, maxsec=0.5))
    print(utils.benchmark(overloaded, maxsec=0.5))
