Both in Industrial Instruments

Cognex vs MKS

Over the past year CGNX returned +39.4% and MKSI returned +41.0%; their daily moves had a correlation of 0.50.

CGNX +39.4% MKSI +41.0%Growth of $1, one year, split-adjusted
MetricCGNXMKSI
Price$58.11$205.18
Market cap$9.78B$13.87B
Today+3.01%+4.40%
1 month−9.7%−26.9%
6 months−1.2%−28.7%
Year to date+61.5%+28.4%
1 year+40.4%+42.8%
Revenue growth (YoY)+16.9%+28.3%
Gross margin70.6%47.7%
Net margin25.0%14.0%
P/E (TTM)55.9×31.5×
Price / sales9.0×3.2×
Net cash$404.4M-$3.33B
Dividend yield0.59%0.49%
Volatility (60d)48.0%56.1%
Short % of float4.1%7.3%
Next earnings——

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