Skip to content

Instantly share code, notes, and snippets.

@rjungemann
Created February 22, 2010 23:13
Show Gist options
  • Save rjungemann/311643 to your computer and use it in GitHub Desktop.
Save rjungemann/311643 to your computer and use it in GitHub Desktop.
Amazon S3 pricing estimate
# 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
@raggi
Copy link

raggi commented Dec 24, 2011

Yup, it's a shame s3 often can't handle this.

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