Variational configuration interaction methods and comparison with perturbation theory