Sample timings using Heroku CI for a small-ish Rails 6 app on various Heroku dyno types:
Dyno Type | Run 1 Duration | Run 2 Duration | Run 3 Duration | Average Duration |
---|---|---|---|---|
standard-1x | 312 | 213 | 303 | 276 |
standard-2x | 227 | 121 | 222 | 190 |
performance-m | 162 | 164 | 175 | 167 |
performance-l | 100 | 104 | 107 | 104 |
The cost for each build is based on the dyno type and it's prorated to the second.
For example, a performance-l dyno is billed at $500/month. If a build runs for 100 seconds, it would incur a cost of about 2 cents:
$500/month * 100 seconds / (30 days/month * 24 hours/day * 60 minutes/hour * 60 seconds/minute) = $0.01929
Using the average build times for each of the dyno types above, we can calculate the corresponding cost per build:
Dyno Type | Average Duration Per Build (seconds) | Average Cost Per Build (USD) |
---|---|---|
standard-1x | 276 | $0.0027 |
standard-2x | 190 | $0.0037 |
performance-m | 167 | $0.0161 |
performance-l | 104 | $0.0200 |
do you know what it really means CPU Share 1x and 2x?