A precise spectral characterization of every single pulse is required in many x-ray free-electron laser (XFEL) experiments due to the fluctuating spectral content of self-amplified spontaneous emission (SASE) beams. Bent single-crystal spectrometers can provide sufficient spectral resolution to resolve the SASE spikes while also covering the full SASE bandwidth. To better withstand the high heat load induced by the 4.5 MHz repetition rate of pulses at the forthcoming European XFEL facility, a spectrometer based on single-crystal diamond has been developed. We report a direct comparison of the diamond spectrometer with its Si counterpart in experiments performed at the Linac Coherent Light Source.