StockComparison Logo
vs

CGNX vs HMY

Comparison between Cognex Corp (CGNX, Company) and Harmony Gold Mining Co Ltd (HMY, Company).

CGNX is from the Technology sector, while HMY is from the Basic Materials sector.

5-Year PerformanceHMY has outperformed CGNX, delivering a return of +29.5% compared to -2.5%

CGNX vs HMY - Performance Comparison

Key Characteristics

Financial metrics and valuation ratios

Market Cap
Winner
CGNX
$11B
HMY
$11B
Max Drawdown
Winner
CGNX
85.19%
HMY
97.19%
Sharpe Ratio
Winner
CGNX
1.62
HMY
0.46
5Y Beta
CGNX
1.40
Winner
HMY
0.83
Industry
CGNX
Scientific & Technical Instruments
HMY
Gold
P/E Ratio
CGNX
78.21
Winner
HMY
7.38
Forward P/E
CGNX
33.90
Winner
HMY
20.66
PEG Ratio
CGNX
3.33
Winner
HMY
0.07
Dividend Yield
CGNX
0.50%
Winner
HMY
2.26%
5Y Dividends CAGR
CGNX
-31.58%
Winner
HMY
40.76%
5Y EPS CAGR
CGNX
-7.89%
HMY
N/A
Debt to Equity
Winner
CGNX
0.00%
HMY
24.85%
Free Cash Flow Yield
CGNX
2.17%
Winner
HMY
10.44%

CGNX vs HMY - Historical Returns

Returns include dividend reinvestment.

1M
Winner
CGNX
+21.23%
HMY
+6.68%
3M
Winner
CGNX
+22.77%
HMY
-21.38%
6M
Winner
CGNX
+75.06%
HMY
-7.32%
1Y
Winner
CGNX
+118.64%
HMY
+24.39%
5Y(CAGR)
CGNX
-2.50%
Winner
HMY
+29.52%
10Y(CAGR)
CGNX
+12.88%
Winner
HMY
+21.09%
Max(CAGR)
Winner
CGNX
+9.59%
HMY
+5.14%

CGNX vs HMY - Annual Returns (1999 - 2026)

Returns include dividend reinvestment.

YearCGNXHMY
2026+81.13%-8.60%
2025+1.71%+137.53%
2024-10.44%+36.89%
2023-12.34%+76.29%
2022-38.45%-11.69%
2021-2.77%-21.29%
2020+46.09%+26.83%
2019+45.84%+100.55%
2018-36.76%-5.79%
2017+93.98%-18.25%
2016+92.37%+110.28%
2015-16.87%-52.11%
2014+9.22%-26.17%
2013+98.75%-71.29%
2012+4.12%-24.86%
2011+19.53%-5.57%
2010+64.06%+20.38%
2009+19.35%-4.35%
2008-23.48%+2.05%
2007-15.44%-32.48%
2006-18.91%+12.90%
2005+12.82%+45.81%
2004-0.78%-43.61%
2003+47.96%-4.30%
2002-27.56%+162.83%
2001+33.87%+47.62%
2000-40.24%-22.83%
1999+29.44%+1.95%

CGNX vs HMY Drawdown Comparison

The maximum drawdown for CGNX was -83.73%, occurring on Mar 9, 2009. Recovery took 3348 trading sessions.

The maximum drawdown for HMY was -97.04%, occurring on Nov 20, 2015. Recovery took 4826 trading sessions.

The current CGNX drawdown is -26.59%. The current HMY drawdown is -31.31%.

RankCGNXHMY
#1-83.73%
Apr 7, 2000 - Aug 1, 2013
-97.04%
Feb 6, 2006 - Apr 11, 2025
#2-74.63%
Feb 12, 2021 - Apr 8, 2025
-65.55%
May 28, 2002 - Jan 31, 2006
#3-51.57%
Nov 21, 2017 - Nov 4, 2020
-50.08%
Feb 18, 2000 - Jan 11, 2002
#4-44.58%
Apr 13, 2015 - Sep 21, 2016
-48.85%
Jan 28, 2026 - Mar 20, 2026
#5-20.02%
Feb 13, 2014 - Jul 3, 2014
-30.64%
Oct 16, 2025 - Jan 12, 2026
#6-19.62%
Aug 22, 2014 - Feb 26, 2015
-29.91%
Apr 16, 2025 - Sep 23, 2025
#7-14.73%
Mar 9, 2000 - Mar 23, 2000
-28.41%
Nov 26, 1999 - Feb 10, 2000
#8-11.49%
Jun 8, 2017 - Aug 1, 2017
-19.79%
Feb 28, 2002 - Mar 22, 2002
#9-9.92%
Dec 31, 1999 - Jan 14, 2000
-14.29%
Feb 15, 2002 - Feb 28, 2002
#10-9.83%
Oct 29, 2013 - Nov 27, 2013
-13.00%
Apr 26, 2002 - May 9, 2002
#11-8.95%
Oct 24, 2016 - Nov 7, 2016
-10.61%
Mar 27, 2002 - Apr 10, 2002
#12-8.81%
Nov 22, 1999 - Dec 21, 1999
-8.52%
Nov 10, 1999 - Nov 23, 1999
#13-8.46%
Sep 10, 2013 - Oct 29, 2013
-7.53%
May 13, 2002 - May 20, 2002
#14-6.60%
Jan 21, 2000 - Feb 2, 2000
-7.02%
Feb 8, 2002 - Feb 14, 2002
#15-6.42%
Jan 14, 2021 - Feb 5, 2021
-6.28%
Jan 16, 2002 - Jan 29, 2002

Correlation

Correlation between CGNX and HMY is -0.36 which considered as a weak negative correlation - the stocks show a slight tendency to move in opposite directions.

-0.36
-101

Dividend Comparison (2000 - 2026)

CGNX vs HMY dividend yield comparison.

YearCGNXHMY
20260.25%1.78%
20250.90%1.07%
20240.85%1.59%
20230.68%0.66%
20220.56%1.14%
20210.32%2.23%
20202.77%0.00%
20190.37%0.00%
20180.48%0.00%
20170.27%3.13%
20160.46%1.37%
20150.62%0.00%
20130.00%1.84%
20123.89%1.23%
20111.01%1.38%
20100.85%0.56%
20091.69%0.63%
20083.18%0.00%
20071.69%0.00%
20061.39%0.00%
20051.06%0.00%
20041.00%1.11%
20030.42%2.19%
20020.00%2.60%
20010.00%1.98%
20000.00%3.38%

Select Stocks to Compare