How is resonance energy measured?
Resonance energy is a fictitious value, it cannot be measured, it is always only estimated. The definition in the gold book[1] clearly states this:

The difference in potential energy between the actual molecular entity and the contributing structure of lowest potential energy. The resonance energy cannot be measured, but only estimated, since contributing structures are not observable molecular entities.

The arising question is how to obtain the energy of the hypothetical contributing structure. One way to do it is to use tabulated (averaged) values for 'normal' bonds to estimate the total energy of the hypothetical molecule.[2]
Another way to do it is to extrapolate from measured hydrogenation energies. This was famously done for benzene. For example, the hydrogenation energy of cyclohexene to cyclohexane is about $\pu{110 kJ mol-1}$. This is the energy to hydrogenate one double bond. In the hypothetical Kekulé structure of benzene you'd expect three of them, giving you a theoretical hydrogenation energy of about $\pu{330 kJ mol-1}$. The measured hydrogenation energy of benzene is about $\pu{200 kJ mol-1}$. This difference of $\pu{130 kJ mol-1}$ can now be taken as the stabilisation due to delocalisation, i.e. the resonance energy.[3]
There is no universal way of doing this, because none of the ways can be proven to be right; it's not real after all. Therefore you may find vastly different values for the resonance energies. It is better to think about resonance as a phenomenological, qualitative argument of mostly pedagogical value. If you are comparing values of hydrogenation (something that can be measured) against extrapolated values (or expectation values) then it is unnecessary to obscure this comparison by giving it another label.


Resonance Energy in: IUPAC. Compendium of Chemical Terminology, 2nd ed. (the &quot;Gold Book&quot;). Compiled by A. D. McNaught and A. Wilkinson. Blackwell Scientific Publications, Oxford (1997). Online version (2019-) created by S. J. Chalk. ISBN 0-9678550-9-8. DOI 10.1351/goldbook.R05333

You can find such values for example in this Chemistry LibreTexts article on Bond Energies.

Values are loosely converted to SI units from the article on Chemistry LibreTexts Structure and Resonance Energy of Benzene: A First Look at Aromaticity.