Add benchmark for double dispatch.