SOM Cost Analysis

How much does SOM compression save on LLM input costs? We tested 49 real-world websites and measured the token reduction from raw HTML to Plasmate SOM output.

16.6x
Overall Compression
10.5x
Median Compression
94%
Token Cost Savings
49
URLs Tested

Range: 0.7x (example.com, tiny page) to 116.9x (cloud.google.com)


Cost per 1,000 Page Loads (49 URLs)

What it costs to send the content of all 49 test URLs to an LLM, repeated 1,000 times:

Model HTML Cost SOM Cost Savings
GPT-4 ($10/M) $50,397 $3,042 $47,355 (94%)
GPT-4o ($2.50/M) $12,599 $761 $11,839 (94%)
Claude Sonnet ($3/M) $15,119 $913 $14,207 (94%)

At Scale: 1M Pages/Month

Monthly cost for processing one million pages at the average page size from this benchmark:

Model HTML/month SOM/month Monthly Savings
GPT-4 $1,028 $62 $966
GPT-4o $257 $16 $241
Sonnet $308 $19 $290

Top 15 Compression Results

cloud.google.com
116.9x
linear.app
105.3x
reddit.com
103.8x
figma.com
63.6x
tailwindcss.com
53.7x
nodejs.org
42.7x
vercel.com
35.7x
wired.com
35.0x
aws.amazon.com
31.4x
mongodb.com
29.2x
typescriptlang.org
27.7x
theguardian.com
20.3x
azure.microsoft.com
15.7x
nytimes.com
15.3x
stripe.com/docs
14.6x

Token Counts

Site HTML Tokens SOM Tokens Ratio
cloud.google.com464,6163,973116.9x
linear.app562,9225,347105.3x
reddit.com121,0271,166103.8x
figma.com369,1245,80663.6x
tailwindcss.com233,0714,33853.7x
nodejs.org115,7712,70942.7x
vercel.com198,7615,56535.7x
wired.com350,41110,00635.0x
aws.amazon.com81,3182,58831.4x
mongodb.com232,1417,94429.2x
typescriptlang.org64,8992,34527.7x
theguardian.com319,87915,75320.3x
azure.microsoft.com134,6548,55515.7x
nytimes.com48,0423,13315.3x
stripe.com/docs48,3783,30514.6x

Methodology

Reproduce

cargo install plasmate
git clone https://github.com/plasmate-labs/plasmate
cd plasmate
./benchmarks/run-cost-analysis.sh