Compare Stocks

5 / 10
Try these comparisons:

Stock Comparison

CGNX vs KEYS vs COHU vs VIAV vs NOVT

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
CGNX
Cognex Corporation

Hardware, Equipment & Parts

TechnologyNASDAQ • US
Market Cap$11.01B
5Y Perf.+16.2%
KEYS
Keysight Technologies, Inc.

Hardware, Equipment & Parts

TechnologyNYSE • US
Market Cap$60.85B
5Y Perf.+228.1%
COHU
Cohu, Inc.

Semiconductors

TechnologyNASDAQ • US
Market Cap$2.23B
5Y Perf.+215.3%
VIAV
Viavi Solutions Inc.

Communication Equipment

TechnologyNASDAQ • US
Market Cap$11.81B
5Y Perf.+340.5%
NOVT
Novanta Inc.

Hardware, Equipment & Parts

TechnologyNASDAQ • US
Market Cap$4.86B
5Y Perf.+32.7%

CGNX vs KEYS vs COHU vs VIAV vs NOVT — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
CGNX logoCGNX
KEYS logoKEYS
COHU logoCOHU
VIAV logoVIAV
NOVT logoNOVT
IndustryHardware, Equipment & PartsHardware, Equipment & PartsSemiconductorsCommunication EquipmentHardware, Equipment & Parts
Market Cap$11.01B$60.85B$2.23B$11.81B$4.86B
Revenue (TTM)$1.05B$5.68B$481M$1.37B$981M
Net Income (TTM)$143M$958M$-56M$-55M$54M
Gross Margin68.0%61.9%25.7%55.7%44.4%
Operating Margin18.8%16.0%-10.6%8.2%11.9%
Forward P/E53.0x39.8x89.2x55.2x38.2x
Total Debt$77M$2.97B$359M$692M$342M
Cash & Equiv.$263M$1.87B$227M$424M$381M

CGNX vs KEYS vs COHU vs VIAV vs NOVTLong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

CGNX
KEYS
COHU
VIAV
NOVT
StockMay 20May 26Return
Cognex Corporation (CGNX)100116.2+16.2%
Keysight Technologi… (KEYS)100328.1+228.1%
Cohu, Inc. (COHU)100315.3+215.3%
Viavi Solutions Inc. (VIAV)100440.5+340.5%
Novanta Inc. (NOVT)100132.7+32.7%

Price return only. Dividends and distributions are not included.

Quick Verdict: CGNX vs KEYS vs COHU vs VIAV vs NOVT

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: KEYS leads in 3 of 7 categories (5-stock set), making it the strongest pick for valuation and capital efficiency and profitability and margin quality. Cognex Corporation is the stronger pick specifically for capital preservation and lower volatility and dividend income and shareholder returns. COHU and VIAV also each lead in at least one category. As sector peers, any of these can serve as alternatives in the same allocation.
CGNX
Cognex Corporation
The Income Pick

CGNX is the #2 pick in this set and the best alternative if income & stability and growth exposure is your priority.

  • Dividend streak 4 yrs, beta 1.50, yield 0.5%
  • Rev growth 8.7%, EPS growth 9.7%, 3Y rev CAGR -0.4%
  • Lower volatility, beta 1.50, Low D/E 5.1%, current ratio 3.80x
  • Beta 1.50, yield 0.5%, current ratio 3.80x
Best for: income & stability and growth exposure
KEYS
Keysight Technologies, Inc.
The Long-Run Compounder

KEYS carries the broadest edge in this set and is the clearest fit for long-term compounding and valuation efficiency.

  • 12.8% 10Y total return vs VIAV's 7.2%
  • PEG 4.97 vs VIAV's 12.09
  • Lower P/E (39.8x vs 55.2x), PEG 4.97 vs 12.09
  • 16.9% margin vs COHU's -11.5%
Best for: long-term compounding and valuation efficiency
COHU
Cohu, Inc.
The Growth Leader

COHU ranks third and is worth considering specifically for growth.

  • 12.7% revenue growth vs NOVT's 3.3%
Best for: growth
VIAV
Viavi Solutions Inc.
The Momentum Pick

VIAV is the clearest fit if your priority is momentum.

  • +466.6% vs NOVT's +14.6%
Best for: momentum
NOVT
Novanta Inc.
The Technology Pick

Among these 5 stocks, NOVT doesn't own a clear edge in any measured category.

Best for: technology exposure
See the full category breakdown
CategoryWinnerWhy
GrowthCOHU logoCOHU12.7% revenue growth vs NOVT's 3.3%
ValueKEYS logoKEYSLower P/E (39.8x vs 55.2x), PEG 4.97 vs 12.09
Quality / MarginsKEYS logoKEYS16.9% margin vs COHU's -11.5%
Stability / SafetyCGNX logoCGNXBeta 1.50 vs COHU's 2.13, lower leverage
DividendsCGNX logoCGNX0.5% yield; 4-year raise streak; the other 4 pay no meaningful dividend
Momentum (1Y)VIAV logoVIAV+466.6% vs NOVT's +14.6%
Efficiency (ROA)KEYS logoKEYS8.3% ROA vs COHU's -4.9%, ROIC 11.5% vs -5.7%

CGNX vs KEYS vs COHU vs VIAV vs NOVT — Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

CGNXCognex Corporation
FY 2025
Standard Product and Services
88.5%$880M
Application of Customer Specific Solutions
11.5%$114M
KEYSKeysight Technologies, Inc.
FY 2024
Communications Solutions Group
68.7%$3.4B
Electronic Industrial Solutions Group
31.3%$1.6B
COHUCohu, Inc.
FY 2014
Semiconductor Equipment
95.0%$317M
Microwave Communications Equipment
5.0%$17M
VIAVViavi Solutions Inc.
FY 2025
Product
84.1%$912M
Service
15.9%$172M
NOVTNovanta Inc.
FY 2025
Robotics and Automation
32.5%$319M
Advanced Surgery
24.7%$242M
Precision Medicine
24.2%$237M
Precision Manufacturing
18.6%$182M

CGNX vs KEYS vs COHU vs VIAV vs NOVT — Financial Metrics

Side-by-side numbers across 5 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLCGNXLAGGINGNOVT

Income & Cash Flow (Last 12 Months)

CGNX leads this category, winning 3 of 6 comparable metrics.

KEYS is the larger business by revenue, generating $5.7B annually — 11.8x COHU's $481M. KEYS is the more profitable business, keeping 16.9% of every revenue dollar as net income compared to COHU's -11.5%. On growth, VIAV holds the edge at +42.8% YoY revenue growth, suggesting stronger near-term business momentum.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
RevenueTrailing 12 months$1.0B$5.7B$481M$1.4B$981M
EBITDAEarnings before interest/tax$219M$1.2B-$11M$207M$179M
Net IncomeAfter-tax profit$143M$958M-$56M-$55M$54M
Free Cash FlowCash after capex$241M$1.5B$32M$46M$48M
Gross MarginGross profit ÷ Revenue+68.0%+61.9%+25.7%+55.7%+44.4%
Operating MarginEBIT ÷ Revenue+18.8%+16.0%-10.6%+8.2%+11.9%
Net MarginNet income ÷ Revenue+13.6%+16.9%-11.5%-4.0%+5.5%
FCF MarginFCF ÷ Revenue+23.0%+25.8%+6.6%+3.3%+4.9%
Rev. Growth (YoY)Latest quarter vs prior year+24.3%+23.3%+29.3%+42.8%+8.5%
EPS Growth (YoY)Latest quarter vs prior year+121.4%+68.0%+60.6%-70.2%-2.2%
CGNX leads this category, winning 3 of 6 comparable metrics.

Valuation Metrics

COHU leads this category, winning 3 of 7 comparable metrics.

At 72.7x trailing earnings, KEYS trades at a 79% valuation discount to VIAV's 340.3x P/E. Adjusting for growth (PEG ratio), KEYS offers better value at 9.08x vs VIAV's 74.57x — a lower PEG means you pay less per unit of expected earnings growth.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
Market CapShares × price$11.0B$60.9B$2.2B$11.8B$4.9B
Enterprise ValueMkt cap + debt − cash$10.8B$62.0B$2.4B$12.1B$4.8B
Trailing P/EPrice ÷ TTM EPS96.92x72.70x-29.86x340.33x92.71x
Forward P/EPrice ÷ next-FY EPS est.53.05x39.84x89.21x55.18x38.25x
PEG RatioP/E ÷ EPS growth rate9.08x74.57x28.13x
EV / EBITDAEnterprise value multiple55.96x50.65x90.43x27.00x
Price / SalesMarket cap ÷ Revenue11.07x11.32x4.93x10.89x4.96x
Price / BookPrice ÷ Book value/share7.48x10.44x2.82x14.77x3.81x
Price / FCFMarket cap ÷ FCF46.49x47.50x207.83x190.52x100.38x
COHU leads this category, winning 3 of 7 comparable metrics.

Profitability & Efficiency

KEYS leads this category, winning 5 of 9 comparable metrics.

KEYS delivers a 15.4% return on equity — every $100 of shareholder capital generates $15 in annual profit, vs $-7 for VIAV. CGNX carries lower financial leverage with a 0.05x debt-to-equity ratio, signaling a more conservative balance sheet compared to VIAV's 0.89x. On the Piotroski fundamental quality scale (0–9), CGNX scores 7/9 vs COHU's 4/9, reflecting strong financial health.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
ROE (TTM)Return on equity+9.6%+15.4%-6.8%-6.9%+4.1%
ROA (TTM)Return on assets+7.1%+8.3%-4.9%-2.3%+3.0%
ROICReturn on invested capital+9.0%+11.5%-5.7%+5.5%+7.4%
ROCEReturn on capital employed+8.9%+11.0%-5.9%+4.9%+8.3%
Piotroski ScoreFundamental quality 0–975455
Debt / EquityFinancial leverage0.05x0.51x0.46x0.89x0.26x
Net DebtTotal debt minus cash-$186M$1.1B$132M$269M-$39M
Cash & Equiv.Liquid assets$263M$1.9B$227M$424M$381M
Total DebtShort + long-term debt$77M$3.0B$359M$692M$342M
Interest CoverageEBIT ÷ Interest expense11.03x-168.82x2.70x4.89x
KEYS leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

VIAV leads this category, winning 5 of 6 comparable metrics.

A $10,000 investment in VIAV five years ago would be worth $31,204 today (with dividends reinvested), compared to $8,682 for CGNX. Over the past 12 months, VIAV leads with a +466.6% total return vs NOVT's +14.6%. The 3-year compound annual growth rate (CAGR) favors VIAV at 77.7% vs NOVT's -5.3% — a key indicator of consistent wealth creation.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
YTD ReturnYear-to-date+78.7%+71.7%+92.9%+181.3%+22.6%
1-Year ReturnPast 12 months+133.1%+137.2%+199.7%+466.6%+14.6%
3-Year ReturnCumulative with dividends+34.7%+147.9%+40.7%+461.0%-15.2%
5-Year ReturnCumulative with dividends-13.2%+147.4%+22.2%+212.0%+5.7%
10-Year ReturnCumulative with dividends+249.6%+1279.4%+330.2%+715.5%+853.7%
CAGR (3Y)Annualised 3-year return+10.4%+35.3%+12.1%+77.7%-5.3%
VIAV leads this category, winning 5 of 6 comparable metrics.

Risk & Volatility

Evenly matched — CGNX and KEYS each lead in 1 of 2 comparable metrics.

CGNX is the less volatile stock with a 1.50 beta — it tends to amplify market swings less than COHU's 2.13 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. KEYS currently trades 96.6% from its 52-week high vs VIAV's 84.5% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
Beta (5Y)Sensitivity to S&P 5001.50x1.71x2.13x1.54x2.02x
52-Week HighHighest price in past year$71.90$367.12$50.68$60.43$149.95
52-Week LowLowest price in past year$27.82$146.23$15.34$8.87$98.27
% of 52W HighCurrent price vs 52-week peak+91.7%+96.6%+93.7%+84.5%+90.9%
RSI (14)Momentum oscillator 0–10076.375.075.566.762.6
Avg Volume (50D)Average daily shares traded2.0M1.3M953K6.3M375K
Evenly matched — CGNX and KEYS each lead in 1 of 2 comparable metrics.

Analyst Outlook

CGNX leads this category, winning 1 of 1 comparable metric.

Analyst consensus: CGNX as "Hold", KEYS as "Buy", COHU as "Buy", VIAV as "Buy", NOVT as "Buy". Consensus price targets imply 10.1% upside for NOVT (target: $150) vs -36.8% for VIAV (target: $32). CGNX is the only dividend payer here at 0.49% yield — a key consideration for income-focused portfolios.

MetricCGNX logoCGNXCognex CorporationKEYS logoKEYSKeysight Technolo…COHU logoCOHUCohu, Inc.VIAV logoVIAVViavi Solutions I…NOVT logoNOVTNovanta Inc.
Analyst RatingConsensus buy/hold/sellHoldBuyBuyBuyBuy
Price TargetConsensus 12-month target$60.22$289.25$49.75$32.25$150.00
# AnalystsCovering analysts311514193
Dividend YieldAnnual dividend ÷ price+0.5%
Dividend StreakConsecutive years of raises401
Dividend / ShareAnnual DPS$0.32
Buyback YieldShare repurchases ÷ mkt cap+1.4%+0.6%+0.3%+0.1%+0.8%
CGNX leads this category, winning 1 of 1 comparable metric.
Key Takeaway

CGNX leads in 2 of 6 categories (Income & Cash Flow, Analyst Outlook). COHU leads in 1 (Valuation Metrics). 1 tied.

Best OverallCognex Corporation (CGNX)Leads 2 of 6 categories
Loading custom metrics...

CGNX vs KEYS vs COHU vs VIAV vs NOVT: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is CGNX or KEYS or COHU or VIAV or NOVT a better buy right now?

For growth investors, Cohu, Inc.

(COHU) is the stronger pick with 12. 7% revenue growth year-over-year, versus 3. 3% for Novanta Inc. (NOVT). Keysight Technologies, Inc. (KEYS) offers the better valuation at 72. 7x trailing P/E (39. 8x forward), making it the more compelling value choice. Analysts rate Keysight Technologies, Inc. (KEYS) a "Buy" — based on 15 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — CGNX or KEYS or COHU or VIAV or NOVT?

On trailing P/E, Keysight Technologies, Inc.

(KEYS) is the cheapest at 72. 7x versus Viavi Solutions Inc. at 340. 3x. On forward P/E, Novanta Inc. is actually cheaper at 38. 2x — notably different from the trailing picture, reflecting expected earnings growth. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Keysight Technologies, Inc. wins at 4. 97x versus Viavi Solutions Inc. 's 12. 09x.

03

Which is the better long-term investment — CGNX or KEYS or COHU or VIAV or NOVT?

Over the past 5 years, Viavi Solutions Inc.

(VIAV) delivered a total return of +212. 0%, compared to -13. 2% for Cognex Corporation (CGNX). Over 10 years, the gap is even starker: KEYS returned +1279% versus CGNX's +249. 6%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — CGNX or KEYS or COHU or VIAV or NOVT?

By beta (market sensitivity over 5 years), Cognex Corporation (CGNX) is the lower-risk stock at 1.

50β versus Cohu, Inc. 's 2. 13β — meaning COHU is approximately 42% more volatile than CGNX relative to the S&P 500. On balance sheet safety, Cognex Corporation (CGNX) carries a lower debt/equity ratio of 5% versus 89% for Viavi Solutions Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — CGNX or KEYS or COHU or VIAV or NOVT?

By revenue growth (latest reported year), Cohu, Inc.

(COHU) is pulling ahead at 12. 7% versus 3. 3% for Novanta Inc. (NOVT). On earnings-per-share growth, the picture is similar: Viavi Solutions Inc. grew EPS 225. 0% year-over-year, compared to -16. 9% for Novanta Inc.. Over a 3-year CAGR, NOVT leads at 4. 4% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — CGNX or KEYS or COHU or VIAV or NOVT?

Keysight Technologies, Inc.

(KEYS) is the more profitable company, earning 15. 7% net margin versus -16. 4% for Cohu, Inc. — meaning it keeps 15. 7% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: KEYS leads at 17. 6% versus -13. 3% for COHU. At the gross margin level — before operating expenses — CGNX leads at 66. 9%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

07

Is CGNX or KEYS or COHU or VIAV or NOVT more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, Keysight Technologies, Inc. (KEYS) is the more undervalued stock at a PEG of 4. 97x versus Viavi Solutions Inc. 's 12. 09x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Novanta Inc. (NOVT) trades at 38. 2x forward P/E versus 89. 2x for Cohu, Inc. — 51. 0x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for NOVT: 10. 1% to $150. 00.

08

Which pays a better dividend — CGNX or KEYS or COHU or VIAV or NOVT?

In this comparison, CGNX (0.

5% yield) pays a dividend. KEYS, COHU, VIAV, NOVT do not pay a meaningful dividend and should not be held primarily for income.

09

Is CGNX or KEYS or COHU or VIAV or NOVT better for a retirement portfolio?

For long-horizon retirement investors, Keysight Technologies, Inc.

(KEYS) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (+1279% 10Y return). Cohu, Inc. (COHU) carries a higher beta of 2. 13 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (KEYS: +1279%, COHU: +330. 2%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

10

What are the main differences between CGNX and KEYS and COHU and VIAV and NOVT?

Both stocks operate in the Technology sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that outperform all of them.

Stocks Like

CGNX

High-Growth Compounder

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 12%
  • Net Margin > 8%
Run This Screen
Stocks Like

KEYS

High-Growth Compounder

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 11%
  • Net Margin > 10%
Run This Screen
Stocks Like

COHU

High-Growth Disruptor

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 14%
  • Gross Margin > 15%
Run This Screen
Stocks Like

VIAV

High-Growth Disruptor

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 21%
  • Gross Margin > 33%
Run This Screen
Stocks Like

NOVT

Quality Business

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Net Margin > 5%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform CGNX and KEYS and COHU and VIAV and NOVT on the metrics below

Revenue Growth>
%
(CGNX: 24.3% · KEYS: 23.3%)
Net Margin>
%
(CGNX: 13.6% · KEYS: 16.9%)
P/E Ratio<
x
(CGNX: 96.9x · KEYS: 72.7x)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.