Created
February 22, 2010 23:13
-
-
Save rjungemann/311643 to your computer and use it in GitHub Desktop.
Amazon S3 pricing estimate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based off of video quality chart at http://chadvonnau.com/youtube.html and | |
# the Amazon S3 pricing chart at http://aws.amazon.com/s3/#pricing | |
# | |
# 2000 users a day for a month, each watching an hour of Hulu-quality video | |
# would cost $64.79/month. | |
# | |
# 5000 users a day for a month, each watching 15 minutes of Hulu-quality video | |
# would cost $40.49/month. | |
require 'activesupport' | |
kpbs = 2147.2 | |
duration_seconds = 15.0 * 60.0 | |
users_day = 5000 | |
days_month = 30 | |
dollars_gb = 0.15 | |
((kpbs * duration_seconds * users_day * days_month) / 1.gigabytes) * dollars_gb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup, it's a shame s3 often can't handle this.