StockComparison Logo
vs

CGNX vs SUN

Comparison between Cognex Corp (CGNX, Company) and Sunoco LP (SUN, Company).

CGNX is from the Technology sector, while SUN is from the Energy sector.

5-Year PerformanceSUN has outperformed CGNX, delivering a return of +23.2% compared to -5.3%

CGNX vs SUN - Performance Comparison

Key Characteristics

Financial metrics and valuation ratios

Market Cap
CGNX
$10B
Winner
SUN
$10B
Max Drawdown
CGNX
85.19%
Winner
SUN
79.87%
Sharpe Ratio
CGNX
1.26
Winner
SUN
1.77
5Y Beta
CGNX
1.46
Winner
SUN
0.33
Industry
CGNX
Scientific & Technical Instruments
SUN
Oil & Gas Refining & Marketing
P/E Ratio
CGNX
73.34
Winner
SUN
11.95
Forward P/E
CGNX
33.90
Winner
SUN
15.38
PEG Ratio
CGNX
3.12
Winner
SUN
0.90
Dividend Yield
CGNX
0.52%
Winner
SUN
5.01%
5Y Dividends CAGR
CGNX
-31.58%
Winner
SUN
13.42%
5Y EPS CAGR
CGNX
-7.89%
Winner
SUN
0.77%
Debt to Equity
Winner
CGNX
0.00%
SUN
57.77%
Free Cash Flow Yield
CGNX
2.32%
Winner
SUN
7.99%

CGNX vs SUN - Historical Returns

Returns include dividend reinvestment.

1M
CGNX
-0.81%
Winner
SUN
+14.31%
3M
Winner
CGNX
+17.42%
SUN
+14.36%
6M
Winner
CGNX
+60.01%
SUN
+34.94%
1Y
Winner
CGNX
+84.58%
SUN
+51.44%
5Y(CAGR)
CGNX
-5.31%
Winner
SUN
+23.21%
10Y(CAGR)
CGNX
+12.12%
Winner
SUN
+19.72%
Max(CAGR)
CGNX
+9.33%
Winner
SUN
+18.18%

CGNX vs SUN - Annual Returns (1999 - 2026)

Returns include dividend reinvestment.

YearCGNXSUN
2026+72.28%+45.87%
2025+1.71%+8.16%
2024-10.44%-3.70%
2023-12.34%+49.92%
2022-38.45%+13.29%
2021-2.77%+56.21%
2020+46.09%+5.58%
2019+45.84%+25.24%
2018-36.76%+6.01%
2017+93.98%+17.21%
2016+92.37%-24.42%
2015-16.87%-14.02%
2014+9.22%+58.77%
2013+98.75%+35.09%
2012+4.12%+9.95%
2011+19.53%N/A
2010+64.06%N/A
2009+19.35%N/A
2008-23.48%N/A
2007-15.44%N/A
2006-18.91%N/A
2005+12.82%N/A
2004-0.78%N/A
2003+47.96%N/A
2002-27.56%N/A
2001+33.87%N/A
2000-40.24%N/A
1999+29.44%N/A

CGNX vs SUN Drawdown Comparison

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

The maximum drawdown for SUN was -65.45%, occurring on Mar 18, 2020. Recovery took 1621 trading sessions.

The current CGNX drawdown is -30.17%. The current SUN drawdown is -1.79%.

RankCGNXSUN
#1-83.73%
Apr 7, 2000 - Aug 1, 2013
-65.45%
Aug 22, 2014 - Feb 1, 2021
#2-74.63%
Feb 12, 2021 - Apr 8, 2025
-21.29%
Mar 6, 2024 - Jan 12, 2026
#3-51.57%
Nov 21, 2017 - Nov 4, 2020
-20.82%
Feb 1, 2022 - Nov 1, 2022
#4-44.58%
Apr 13, 2015 - Sep 21, 2016
-14.64%
Mar 26, 2013 - Nov 6, 2013
#5-20.02%
Feb 13, 2014 - Jul 3, 2014
-13.96%
May 19, 2026 - Jul 14, 2026
#6-19.62%
Aug 22, 2014 - Feb 26, 2015
-12.50%
Feb 6, 2023 - Aug 30, 2023
#7-14.73%
Mar 9, 2000 - Mar 23, 2000
-12.17%
Dec 28, 2023 - Feb 15, 2024
#8-11.49%
Jun 8, 2017 - Aug 1, 2017
-12.06%
Mar 4, 2014 - Apr 28, 2014
#9-9.92%
Dec 31, 1999 - Jan 14, 2000
-9.10%
Oct 19, 2021 - Jan 4, 2022
#10-9.83%
Oct 29, 2013 - Nov 27, 2013
-8.43%
Jun 11, 2021 - Aug 3, 2021
#11-8.95%
Oct 24, 2016 - Nov 7, 2016
-8.18%
Sep 28, 2023 - Oct 18, 2023
#12-8.81%
Nov 22, 1999 - Dec 21, 1999
-7.27%
Apr 28, 2014 - May 19, 2014
#13-8.46%
Sep 10, 2013 - Oct 29, 2013
-7.02%
Nov 12, 2012 - Jan 2, 2013
#14-6.60%
Jan 21, 2000 - Feb 2, 2000
-6.86%
Feb 8, 2013 - Feb 26, 2013
#15-6.42%
Jan 14, 2021 - Feb 5, 2021
-6.57%
Feb 8, 2021 - Apr 6, 2021

Correlation

Correlation between CGNX and SUN is 0.32 which considered as a weak positive correlation - the stocks show a slight tendency to move together.

0.32
-101

Dividend Comparison (2003 - 2026)

CGNX vs SUN dividend yield comparison.

YearCGNXSUN
20260.27%2.58%
20250.90%6.89%
20240.85%6.74%
20230.68%5.59%
20220.56%7.66%
20210.32%8.09%
20202.77%11.47%
20190.37%10.79%
20180.48%12.14%
20170.27%11.63%
20160.46%12.16%
20150.62%6.78%
20140.00%4.12%
20130.00%5.43%
20123.89%0.11%
20111.01%0.00%
20100.85%0.00%
20091.69%0.00%
20083.18%0.00%
20071.69%0.00%
20061.39%0.00%
20051.06%0.00%
20041.00%0.00%
20030.42%0.00%

Select Stocks to Compare