Skip to content

Instantly share code, notes, and snippets.

@jasonrudolph
Last active December 22, 2021 18:12
Show Gist options
  • Save jasonrudolph/cf6c307c7257a6c5602d6268b052d0e0 to your computer and use it in GitHub Desktop.
Save jasonrudolph/cf6c307c7257a6c5602d6268b052d0e0 to your computer and use it in GitHub Desktop.
Sample timings and costs using various Heroku CI dyno types

Sample timings (in seconds)

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

Pay-by-the-second billing

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

Cost comparison

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

Specs for Heroku CI dyno types

Dyno Type Memory (GB) Compute CPU Share Dedicated Cost Per Month (USD)
standard-1x 0.5 1x-4x 1x no $25
standard-2x 1.0 4x-8x 2x no $50
performance-m 2.5 11x 100% yes $250
performance-l 14.0 46x 100% yes $500
@Kanithor
Copy link

Kanithor commented Jun 3, 2021

do you know what it really means CPU Share 1x and 2x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment