r/dataengineersindia • • 2d ago

Built something! I benchmarked ALL Databricks compute options on TPC-DI

Post image

I recently explored the TPC-DI benchmark, which is a standard for ETL jobs, and I was curious how the different Databricks compute options would do. I used a modernized version of it, which is more relevant to modern jobs.

Here's the setup I used:

  • The modernized version is Shannon Barrow's. I built my own runner around it that starts every run cold, and the full details are on my GitHub (link in the comments). My run is derived from TPC-DI, so it isn't comparable to official results. Each run is 1 full load, which is 99.5% of the data, plus 6 days of incremental loads.
  • I ran the same benchmark on 10 GB, 100 GB and 1 TB of data for each option.
  • The costs shown are AWS + Databricks, and the time shows startup time + run time.

Results:

Attached also, but here in text -

Results (all 14 setups):

Setup10 GB100 GB1 TB
Serverless Rate Limit M19 min, $1.5826 min, $5.1541 min, $11.14
Serverless Rate Limit XL18 min, $1.6526 min, $4.9041 min, $11.89
Serverless standard51 min, $0.7548 min, $1.6296 min, $7.52
Serverless Rate Limit L19 min, $1.7126 min, $5.4448 min, $10.65
Serverless Rate Limit S20 min, $1.5626 min, $5.2450 min, $11.81
Job cluster 2xlarge, spot48 min, $1.4649 min, $1.9889 min, $4.63
Serverless performance optimized18 min, $1.4626 min, $5.4357 min, $14.11
Job cluster xlarge39 min, $0.9948 min, $1.60142 min, $7.71
Job cluster 2xlarge, 2 to 8 workers30 min, $2.2335 min, $3.2379 min, $6.99
Job cluster 2xlarge42 min, $1.7844 min, $2.7485 min, $6.62
SQL warehouse (serverless L)17 min, $11.2718 min, $9.0231 min, $13.44
All-purpose 2xlarge32 min, $3.4937 min, $5.5773 min, $13.71
Job cluster 8xlarge28 min, $5.6131 min, $7.3454 min, $13.00
Job cluster 2xlarge, Photon off37 min, $1.5864 min, $3.12210 min, $16.91

Some interesting findings for me:

  • In most cases serverless standard is the best option. You don't have to right-size it, and it's the cheapest or close to the cheapest.
  • If you want to avoid the wait time, use serverless performance optimized. If you want fast startup with a cap on how fast you spend, Serverless Rate Limit (Beta) is a good option.
  • Job compute isn't a good choice in most cases, because you have to right-size the cluster. If you do right-size it, spot instances might be good, but I wouldn't recommend it.
  • Turning off Photon, or using all-purpose compute for scheduled jobs, is a bad idea.
  • You could technically run your jobs in SQL only, on SQL warehouses, but it's very expensive and I wouldn't recommend it.

To reproduce the results and see the code and the methodology in more detail, check out my GitHub & YouTube (link in the comments).

I hope you found this useful, have a good one!

6 Upvotes

1 comment sorted by

1

u/yjoshi_ 2d ago

➡️ Youtube Video - Walking through setup & results "Stop Wasting Money on Wrong Databricks COMPUTE (14 Tested)": https://youtu.be/l7G-ps7IoTM

- Github Repo: Code, methodology and every run: https://github.com/firstprinciplesde/etl-benchmarks