Skip to content

Instantly share code, notes, and snippets.

@prastut
Created October 17, 2020 05:40
Show Gist options
  • Save prastut/1195e48c65c4f32003d4b456f2094934 to your computer and use it in GitHub Desktop.
Save prastut/1195e48c65c4f32003d4b456f2094934 to your computer and use it in GitHub Desktop.
Comparison of Filecoin storing 1GB/year with Amazon S3
# Comparison of Filecoin storing 1GB/year with Amazon S3
## Filecoin
### Controls
deals_array = 2500
total_GB_stored_in_deals_array = 2,470.018 GB
total_FIL_paid_in_deals_array = 3.978
avg_deal_period_in_deals_array = 211.28 days
FIL_price_in_USD = $47
### Calculation
avg_deal_size = total_GB_stored_in_deals_array/deals_array
avg_FIL_paid = total_FIL_paid_in_deals_array/deals_array
### On average what would 1 GB cost in USD?
price_per_gb_in_fil = avg_FIL_paid/avg_deal_size
price_per_gb_in_USD = prev*FIL_price_in_USD
### What would be the annual cost of storing 1 GB?
#### Daily cost
price_per_gb_per_day = price_per_gb_in_USD/avg_deal_period_in_deals_array
#### Yearly cost:
one_gig_usd_per_year = price_per_gb_per_day*365
price_per_gb_per_year_filecoin = prev
## Amazon
price_per_gb_in_USD_per_month = $0.023
annual_cost = prev*12 = $0.276
price_per_gb_per_year_amazon = prev
## Price Comparision:
price_per_gb_per_year_filecoin/price_per_gb_per_year_amazon
cheaper_% = (1 - prev)*100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment