Super high quality aspherical x-ray mirrors with a residual slope error of ∼100 nrad (root-mean-square) and a height error of ∼1-2 nm (peak-to-valley), and even lower, are now available from a number of the most advanced vendors utilizing deterministic polishing techniques. The mirror specification for the fabrication is based on the simulations of the desired performance of the mirror in the beamline optical system and is normally given with the acceptable level of deviation of the mirror figure and finish from the desired ideal shape. For example, in the case of aspherical x-ray mirrors designed for the Advanced Light Source (ALS) QERLIN beamline, the ideal shape is defined with the beamline application (conjugate) parameters and their tolerances. In this paper, we first discuss an original procedure and dedicated software developed at the ALS X-Ray Optics Laboratory (XROL) for optimization of beamline performance of pre-shaped hyperbolic and elliptical mirrors. The optimization is based on results of ex situ surface slope metrology and consists in minimization of the mirror shape error by determining the conjugate parameters of the best-fit ideal shape within the specified tolerances. We describe novel optical metrology instrumentation, measuring techniques, and analytical methods used at the XROL for acquisition of surface slope data and optimization of the optic's beamline performance. The high efficacy of the developed experimental methods and data analysis procedures is demonstrated in results of measurements with and performance optimization of hyperbolic and elliptical cylinder mirrors designed and fabricated for the ALS QERLIN beamline.