Compare Stocks

5 / 10
Try these comparisons:

Stock Comparison

HLP vs SGBX vs BLDR vs CODA vs TREX

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

Live fundamentals10-year financials5-year price chart
HLP
Hongli Group Inc.

Steel

Basic MaterialsNASDAQ • CN
Market Cap$62M
5Y Perf.-75.8%
SGBX
Safe & Green Holdings Corp.

Manufacturing - Metal Fabrication

IndustrialsNASDAQ • US
Market Cap$33K
5Y Perf.-99.9%
BLDR
Builders FirstSource, Inc.

Construction

IndustrialsNYSE • US
Market Cap$8.79B
5Y Perf.-10.5%
CODA
Coda Octopus Group, Inc.

Aerospace & Defense

IndustrialsNASDAQ • US
Market Cap$134M
5Y Perf.+62.6%
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.12B
5Y Perf.-19.5%

HLP vs SGBX vs BLDR vs CODA vs TREX — Key Financials

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

Company Snapshot
HLP logoHLP
SGBX logoSGBX
BLDR logoBLDR
CODA logoCODA
TREX logoTREX
IndustrySteelManufacturing - Metal FabricationConstructionAerospace & DefenseConstruction
Market Cap$62M$33K$8.79B$134M$4.12B
Revenue (TTM)$30M$3M$14.82B$28M$1.18B
Net Income (TTM)$-1M$-19M$292M$4M$191M
Gross Margin32.4%-87.3%29.9%66.3%39.2%
Operating Margin-1.9%-375.8%4.2%17.4%22.1%
Forward P/E14.1x22.5x24.0x
Total Debt$9M$7M$5.65B$395K$229M
Cash & Equiv.$910K$376K$182M$29M$4M

HLP vs SGBX vs BLDR vs CODA vs TREXLong-Term Stock Performance

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

HLP
SGBX
BLDR
CODA
TREX
StockMar 23May 26Return
Hongli Group Inc. (HLP)10024.2-75.8%
Safe & Green Holdin… (SGBX)1000.1-99.9%
Builders FirstSourc… (BLDR)10089.5-10.5%
Coda Octopus Group,… (CODA)100162.6+62.6%
Trex Company, Inc. (TREX)10080.5-19.5%

Price return only. Dividends and distributions are not included.

Quick Verdict: HLP vs SGBX vs BLDR vs CODA vs TREX

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

Bottom line: SGBX and CODA are tied at the top with 2 categories each (5-stock set) — the right choice depends on your priorities. Coda Octopus Group, Inc. is the stronger pick specifically for growth and revenue expansion and recent price momentum and sentiment. TREX and BLDR also each lead in at least one category. This set spans 2 sectors — these stocks serve different portfolio roles, not just different price points.
HLP
Hongli Group Inc.
The Basic Materials Pick

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

Best for: basic materials exposure
SGBX
Safe & Green Holdings Corp.
The Income Pick

SGBX has the current edge in this matchup, primarily because of its strength in income & stability.

  • Dividend streak 1 yrs, beta 0.45, yield 100.0%
  • Beta 0.45 vs BLDR's 1.65
  • 100.0% yield; 1-year raise streak; the other 4 pay no meaningful dividend
Best for: income & stability
BLDR
Builders FirstSource, Inc.
The Value Pick

BLDR is the clearest fit if your priority is valuation efficiency.

  • PEG 1.78 vs TREX's 7.16
  • Lower P/E (14.1x vs 24.0x), PEG 1.78 vs 7.16
Best for: valuation efficiency
CODA
Coda Octopus Group, Inc.
The Growth Play

CODA is the #2 pick in this set and the best alternative if growth exposure and long-term compounding is your priority.

  • Rev growth 30.7%, EPS growth 15.6%, 3Y rev CAGR 6.1%
  • 8.4% 10Y total return vs BLDR's 6.1%
  • Lower volatility, beta 1.00, Low D/E 0.7%, current ratio 8.86x
  • Beta 1.00, current ratio 8.86x
Best for: growth exposure and long-term compounding
TREX
Trex Company, Inc.
The Quality Compounder

TREX ranks third and is worth considering specifically for quality and efficiency.

  • 16.3% margin vs SGBX's -5.7%
  • 12.3% ROA vs SGBX's -35.6%, ROIC 16.4% vs -625.7%
Best for: quality and efficiency
See the full category breakdown
CategoryWinnerWhy
GrowthCODA logoCODA30.7% revenue growth vs SGBX's -69.9%
ValueBLDR logoBLDRLower P/E (14.1x vs 24.0x), PEG 1.78 vs 7.16
Quality / MarginsTREX logoTREX16.3% margin vs SGBX's -5.7%
Stability / SafetySGBX logoSGBXBeta 0.45 vs BLDR's 1.65
DividendsSGBX logoSGBX100.0% yield; 1-year raise streak; the other 4 pay no meaningful dividend
Momentum (1Y)CODA logoCODA+78.9% vs SGBX's -96.3%
Efficiency (ROA)TREX logoTREX12.3% ROA vs SGBX's -35.6%, ROIC 16.4% vs -625.7%

HLP vs SGBX vs BLDR vs CODA vs TREX — Revenue Breakdown by Segment

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

HLPHongli Group Inc.

Segment breakdown not available.

SGBXSafe & Green Holdings Corp.
FY 2024
Office
96.3%$5M
Hospitality
3.7%$181,719
BLDRBuilders FirstSource, Inc.
FY 2025
Specialty Building Products And Services
26.8%$4.1B
Lumber And Lumber Sheet Goods
25.5%$3.9B
Windows Doors And Millwork
25.3%$3.8B
Manufactured Products
22.5%$3.4B
CODACoda Octopus Group, Inc.
FY 2025
Equipment Sales
71.3%$14M
Service
17.3%$4M
Equipment Rentals
7.3%$1M
Software Sales
4.0%$811,912
TREXTrex Company, Inc.

Segment breakdown not available.

HLP vs SGBX vs BLDR vs CODA vs TREX — Financial Metrics

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

BEST OVERALLCODALAGGINGTREX

Income & Cash Flow (Last 12 Months)

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

BLDR is the larger business by revenue, generating $14.8B annually — 4381.0x SGBX's $3M. TREX is the more profitable business, keeping 16.3% of every revenue dollar as net income compared to SGBX's -5.7%. On growth, CODA holds the edge at +28.8% YoY revenue growth, suggesting stronger near-term business momentum.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
RevenueTrailing 12 months$30M$3M$14.8B$28M$1.2B
EBITDAEarnings before interest/tax$1M-$12M$1.2B$6M$309M
Net IncomeAfter-tax profit-$1M-$19M$292M$4M$191M
Free Cash FlowCash after capex-$2M-$5M$862M$7M$263M
Gross MarginGross profit ÷ Revenue+32.4%-87.3%+29.9%+66.3%+39.2%
Operating MarginEBIT ÷ Revenue-1.9%-3.8%+4.2%+17.4%+22.1%
Net MarginNet income ÷ Revenue-3.4%-5.7%+2.0%+14.8%+16.3%
FCF MarginFCF ÷ Revenue-6.4%-155.0%+5.8%+24.6%+22.3%
Rev. Growth (YoY)Latest quarter vs prior year+0.9%-40.0%-10.1%+28.8%+1.0%
EPS Growth (YoY)Latest quarter vs prior year+88.9%-151.2%+3.0%+3.6%
CODA leads this category, winning 3 of 6 comparable metrics.

Valuation Metrics

BLDR leads this category, winning 4 of 7 comparable metrics.

At 20.4x trailing earnings, BLDR trades at a 36% valuation discount to CODA's 32.2x P/E. Adjusting for growth (PEG ratio), BLDR offers better value at 2.59x vs CODA's 7.51x — a lower PEG means you pay less per unit of expected earnings growth.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
Market CapShares × price$62M$32,963$8.8B$134M$4.1B
Enterprise ValueMkt cap + debt − cash$70M$7M$14.3B$106M$4.3B
Trailing P/EPrice ÷ TTM EPS-32.85x-0.00x20.43x32.16x22.00x
Forward P/EPrice ÷ next-FY EPS est.14.07x22.45x23.95x
PEG RatioP/E ÷ EPS growth rate2.59x7.51x6.58x
EV / EBITDAEnterprise value multiple10.35x17.85x13.53x
Price / SalesMarket cap ÷ Revenue4.38x0.01x0.58x5.05x3.51x
Price / BookPrice ÷ Book value/share1.15x2.04x2.30x4.05x
Price / FCFMarket cap ÷ FCF10.30x22.20x30.60x
BLDR leads this category, winning 4 of 7 comparable metrics.

Profitability & Efficiency

Evenly matched — CODA and TREX each lead in 4 of 9 comparable metrics.

TREX delivers a 18.8% return on equity — every $100 of shareholder capital generates $19 in annual profit, vs $-77 for SGBX. CODA carries lower financial leverage with a 0.01x debt-to-equity ratio, signaling a more conservative balance sheet compared to BLDR's 1.30x. On the Piotroski fundamental quality scale (0–9), CODA scores 7/9 vs SGBX's 2/9, reflecting strong financial health.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
ROE (TTM)Return on equity-1.9%-77.2%+6.9%+7.2%+18.8%
ROA (TTM)Return on assets-1.6%-35.6%+2.6%+6.6%+12.3%
ROICReturn on invested capital-2.6%-625.7%+6.4%+11.2%+16.4%
ROCEReturn on capital employed-3.9%+8.5%+8.1%+23.2%
Piotroski ScoreFundamental quality 0–932576
Debt / EquityFinancial leverage0.18x1.30x0.01x0.22x
Net DebtTotal debt minus cash$8M$7M$5.5B-$28M$225M
Cash & Equiv.Liquid assets$909,716$375,873$182M$29M$4M
Total DebtShort + long-term debt$9M$7M$5.6B$394,932$229M
Interest CoverageEBIT ÷ Interest expense-0.00x-13.81x2.19x
Evenly matched — CODA and TREX each lead in 4 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

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

A $10,000 investment in BLDR five years ago would be worth $15,180 today (with dividends reinvested), compared to $5 for SGBX. Over the past 12 months, CODA leads with a +78.9% total return vs SGBX's -96.3%. The 3-year compound annual growth rate (CAGR) favors CODA at 10.4% vs SGBX's -87.5% — a key indicator of consistent wealth creation.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
YTD ReturnYear-to-date-17.2%-52.9%-24.0%+25.1%+9.3%
1-Year ReturnPast 12 months-31.6%-96.3%-25.0%+78.9%-30.8%
3-Year ReturnCumulative with dividends-65.0%-99.8%-30.1%+34.5%-30.4%
5-Year ReturnCumulative with dividends-76.0%-100.0%+51.8%+49.7%-64.0%
10-Year ReturnCumulative with dividends-76.0%-100.0%+614.8%+844.4%+239.9%
CAGR (3Y)Annualised 3-year return-29.5%-87.5%-11.2%+10.4%-11.4%
CODA leads this category, winning 5 of 6 comparable metrics.

Risk & Volatility

Evenly matched — SGBX and CODA each lead in 1 of 2 comparable metrics.

SGBX is the less volatile stock with a 0.45 beta — it tends to amplify market swings less than BLDR's 1.65 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. CODA currently trades 68.9% from its 52-week high vs SGBX's 1.0% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
Beta (5Y)Sensitivity to S&P 5000.81x0.45x1.65x1.00x1.47x
52-Week HighHighest price in past year$1.82$96.00$151.03$17.28$68.78
52-Week LowLowest price in past year$0.61$0.79$73.40$5.98$29.77
% of 52W HighCurrent price vs 52-week peak+46.2%+1.0%+52.6%+68.9%+56.9%
RSI (14)Momentum oscillator 0–10045.535.242.848.651.3
Avg Volume (50D)Average daily shares traded164K503K2.4M256K1.7M
Evenly matched — SGBX and CODA each lead in 1 of 2 comparable metrics.

Analyst Outlook

Evenly matched — BLDR and TREX each lead in 1 of 1 comparable metric.

Analyst consensus: BLDR as "Buy", CODA as "Buy", TREX as "Hold". Consensus price targets imply 38.3% upside for BLDR (target: $110) vs 13.6% for TREX (target: $45). SGBX is the only dividend payer here at 100.00% yield — a key consideration for income-focused portfolios.

MetricHLP logoHLPHongli Group Inc.SGBX logoSGBXSafe & Green Hold…BLDR logoBLDRBuilders FirstSou…CODA logoCODACoda Octopus Grou…TREX logoTREXTrex Company, Inc.
Analyst RatingConsensus buy/hold/sellBuyBuyHold
Price TargetConsensus 12-month target$109.92$14.00$44.50
# AnalystsCovering analysts43131
Dividend YieldAnnual dividend ÷ price+100.0%
Dividend StreakConsecutive years of raises1202
Dividend / ShareAnnual DPS$13.85
Buyback YieldShare repurchases ÷ mkt cap0.0%0.0%+4.7%0.0%+1.3%
Evenly matched — BLDR and TREX each lead in 1 of 1 comparable metric.
Key Takeaway

CODA leads in 2 of 6 categories (Income & Cash Flow, Total Returns). BLDR leads in 1 (Valuation Metrics). 3 tied.

Best OverallCoda Octopus Group, Inc. (CODA)Leads 2 of 6 categories
Loading custom metrics...

HLP vs SGBX vs BLDR vs CODA vs TREX: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is HLP or SGBX or BLDR or CODA or TREX a better buy right now?

For growth investors, Coda Octopus Group, Inc.

(CODA) is the stronger pick with 30. 7% revenue growth year-over-year, versus -69. 9% for Safe & Green Holdings Corp. (SGBX). Builders FirstSource, Inc. (BLDR) offers the better valuation at 20. 4x trailing P/E (14. 1x forward), making it the more compelling value choice. Analysts rate Builders FirstSource, Inc. (BLDR) a "Buy" — based on 43 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 — HLP or SGBX or BLDR or CODA or TREX?

On trailing P/E, Builders FirstSource, Inc.

(BLDR) is the cheapest at 20. 4x versus Coda Octopus Group, Inc. at 32. 2x. On forward P/E, Builders FirstSource, Inc. is actually cheaper at 14. 1x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Builders FirstSource, Inc. wins at 1. 78x versus Trex Company, Inc. 's 7. 16x — a reasonable growth-adjusted valuation.

03

Which is the better long-term investment — HLP or SGBX or BLDR or CODA or TREX?

Over the past 5 years, Builders FirstSource, Inc.

(BLDR) delivered a total return of +51. 8%, compared to -100. 0% for Safe & Green Holdings Corp. (SGBX). Over 10 years, the gap is even starker: CODA returned +844. 4% versus SGBX's -100. 0%. 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 — HLP or SGBX or BLDR or CODA or TREX?

By beta (market sensitivity over 5 years), Safe & Green Holdings Corp.

(SGBX) is the lower-risk stock at 0. 45β versus Builders FirstSource, Inc. 's 1. 65β — meaning BLDR is approximately 271% more volatile than SGBX relative to the S&P 500. On balance sheet safety, Coda Octopus Group, Inc. (CODA) carries a lower debt/equity ratio of 1% versus 130% for Builders FirstSource, Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — HLP or SGBX or BLDR or CODA or TREX?

By revenue growth (latest reported year), Coda Octopus Group, Inc.

(CODA) is pulling ahead at 30. 7% versus -69. 9% for Safe & Green Holdings Corp. (SGBX). On earnings-per-share growth, the picture is similar: Safe & Green Holdings Corp. grew EPS 69. 1% year-over-year, compared to -134. 8% for Hongli Group Inc.. Over a 3-year CAGR, CODA leads at 6. 1% 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 — HLP or SGBX or BLDR or CODA or TREX?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus -341. 2% for Safe & Green Holdings Corp. — meaning it keeps 16. 2% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: TREX leads at 22. 0% versus -195. 0% for SGBX. At the gross margin level — before operating expenses — CODA leads at 66. 5%, 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 HLP or SGBX or BLDR or CODA or TREX 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, Builders FirstSource, Inc. (BLDR) is the more undervalued stock at a PEG of 1. 78x versus Trex Company, Inc. 's 7. 16x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Builders FirstSource, Inc. (BLDR) trades at 14. 1x forward P/E versus 24. 0x for Trex Company, Inc. — 9. 9x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for BLDR: 38. 3% to $109. 92.

08

Which pays a better dividend — HLP or SGBX or BLDR or CODA or TREX?

In this comparison, SGBX (100.

0% yield) pays a dividend. HLP, BLDR, CODA, TREX do not pay a meaningful dividend and should not be held primarily for income.

09

Is HLP or SGBX or BLDR or CODA or TREX better for a retirement portfolio?

For long-horizon retirement investors, Safe & Green Holdings Corp.

(SGBX) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 45), 100. 0% yield). Both have compounded well over 10 years (SGBX: -100. 0%, TREX: +239. 9%), 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 HLP and SGBX and BLDR and CODA and TREX?

These companies operate in different sectors (HLP (Basic Materials) and SGBX (Industrials) and BLDR (Industrials) and CODA (Industrials) and TREX (Industrials)), which means they face different economic cycles, regulatory environments, and macro sensitivities — making direct comparison nuanced.

In terms of investment character: HLP is a small-cap quality compounder stock; SGBX is a small-cap income-oriented stock; BLDR is a small-cap quality compounder stock; CODA is a small-cap high-growth stock; TREX is a small-cap quality compounder stock. SGBX pays a dividend while HLP, BLDR, CODA, TREX do not, making them suitable for different income and tax situations. 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

HLP

Quality Business

  • Sector: Basic Materials
  • Market Cap > $100B
  • Gross Margin > 19%
Run This Screen
Stocks Like

SGBX

Quality Business

  • Sector: Industrials
  • Market Cap > $2B
  • Dividend Yield > 40.0%
Run This Screen
Stocks Like

BLDR

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Gross Margin > 17%
Run This Screen
Stocks Like

CODA

High-Growth Compounder

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

TREX

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Net Margin > 9%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform HLP and SGBX and BLDR and CODA and TREX on the metrics below

Revenue Growth>
%
(HLP: 0.9% · SGBX: -40.0%)

You Might Also Compare

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