This Gist was automatically created by Carbide, a free online programming environment.
Created
August 26, 2016 01:24
-
-
Save thefotios/ee48eab2c4eb7f40da9cf833597b67d5 to your computer and use it in GitHub Desktop.
Backpopulation Time
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
const MEDIA_ITEMS = 90e6; | |
const WORKERS = 1; | |
const operationTime = { | |
render: 20, | |
network: 500, | |
}; | |
const msPerOperation = Object.keys(operationTime).reduce((cur, key) => cur += operationTime[key], 0); | |
const DAY_IN_MS = 24 * 60 * 60 * 1000; | |
const operationsPerDay = DAY_IN_MS / msPerOperation; | |
MEDIA_ITEMS / operationsPerDay / WORKERS ///Days it would take |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment