Margins are typically measured by comparing actual performance data with theoretical models or benchmarks. This comparison can be quantitative, such as comparing reaction rates, or qualitative, such as assessing the purity of the products. Advanced analytical techniques like spectroscopy, chromatography, and computational methods are often used to measure these differences accurately.