add benchmark between linear and quadratic cases.