Both in Industrial Instruments

Ametek vs Cognex

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

AME +19.3% CGNX +35.7%Growth of $1, one year, split-adjusted
MetricAMECGNX
Price$241.12$56.15
Market cap$55.28B$9.45B
Today−4.23%−4.78%
1 month−3.2%−9.8%
6 months+4.6%+0.4%
Year to date+17.4%+56.1%
1 year+30.9%+18.4%
Revenue growth (YoY)+15.0%+16.9%
Gross margin36.0%70.6%
Net margin19.9%25.0%
P/E (TTM)35.1×54.0×
Price / sales7.0×8.7×
Net cash-$1.54B$404.4M
Dividend yield0.56%0.61%
Volatility (60d)23.5%48.2%
Short % of float1.6%4.1%
Next earnings——

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