Analytic derivatives in ceres gives very very very very good perfomance. Manual calculating of Jacobian - is the best idea.