Both in Industrial Instruments

MKS vs Cognex

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

MKSI +38.9% CGNX +34.7%Growth of $1, one year, split-adjusted
MetricMKSICGNX
Price$202.04$56.15
Market cap$13.66B$9.45B
Today−6.54%−4.78%
1 month−25.5%−9.8%
6 months−27.7%+0.4%
Year to date+26.4%+56.1%
1 year+42.9%+18.4%
Revenue growth (YoY)+28.3%+16.9%
Gross margin47.7%70.6%
Net margin14.0%25.0%
P/E (TTM)31.0×54.0×
Price / sales3.1×8.7×
Net cash-$3.33B$404.4M
Dividend yield0.49%0.61%
Volatility (60d)56.5%48.2%
Short % of float7.3%4.1%
Next earnings——

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