Both in Industrial Instruments

Cognex vs Ametek

Over the past year CGNX returned +39.4% and AME returned +25.1%; their daily moves had a correlation of 0.40.

CGNX +39.4% AME +25.1%Growth of $1, one year, split-adjusted
MetricCGNXAME
Price$58.11$248.58
Market cap$9.78B$56.99B
Today+3.01%+2.76%
1 month−9.7%−1.3%
6 months−1.2%+6.0%
Year to date+61.5%+21.1%
1 year+40.4%+23.0%
Revenue growth (YoY)+16.9%+15.0%
Gross margin70.6%36.0%
Net margin25.0%19.9%
P/E (TTM)55.9×36.2×
Price / sales9.0×7.2×
Net cash$404.4M-$1.54B
Dividend yield0.59%0.55%
Volatility (60d)48.0%24.1%
Short % of float4.1%1.6%
Next earnings——

Shading marks the stronger figure where one clearly exists (lower is better for valuation and volatility).