Modern lenses usually perform the best around the middle of the
aperture range - eg at f 5.6 or f 8. "Best" here means the
sharpest image, not only in the centre but also on the edges and
corners. After about f 11 diffraction effects can set in.
Difraction depends on the lens aperture used and the sensor in the
camera (size of the sensor and the total number of pixels)
Here are some images cropped from near the centre of the frame
reproduced at 100% size. Ignore the effects of increasing depth of
field as the lens is stopped down - just examine the detail in the
7 -