Update benchmark to work with generic_m2m