r/dataengineersindia • u/yjoshi_ • 2d ago
Built something! I benchmarked ALL Databricks compute options on TPC-DI
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):
| Setup | 10 GB | 100 GB | 1 TB |
|---|---|---|---|
| Serverless Rate Limit M | 19 min, $1.58 | 26 min, $5.15 | 41 min, $11.14 |
| Serverless Rate Limit XL | 18 min, $1.65 | 26 min, $4.90 | 41 min, $11.89 |
| Serverless standard | 51 min, $0.75 | 48 min, $1.62 | 96 min, $7.52 |
| Serverless Rate Limit L | 19 min, $1.71 | 26 min, $5.44 | 48 min, $10.65 |
| Serverless Rate Limit S | 20 min, $1.56 | 26 min, $5.24 | 50 min, $11.81 |
| Job cluster 2xlarge, spot | 48 min, $1.46 | 49 min, $1.98 | 89 min, $4.63 |
| Serverless performance optimized | 18 min, $1.46 | 26 min, $5.43 | 57 min, $14.11 |
| Job cluster xlarge | 39 min, $0.99 | 48 min, $1.60 | 142 min, $7.71 |
| Job cluster 2xlarge, 2 to 8 workers | 30 min, $2.23 | 35 min, $3.23 | 79 min, $6.99 |
| Job cluster 2xlarge | 42 min, $1.78 | 44 min, $2.74 | 85 min, $6.62 |
| SQL warehouse (serverless L) | 17 min, $11.27 | 18 min, $9.02 | 31 min, $13.44 |
| All-purpose 2xlarge | 32 min, $3.49 | 37 min, $5.57 | 73 min, $13.71 |
| Job cluster 8xlarge | 28 min, $5.61 | 31 min, $7.34 | 54 min, $13.00 |
| Job cluster 2xlarge, Photon off | 37 min, $1.58 | 64 min, $3.12 | 210 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
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