Predict the output
What does the estimate print?
new_urls_per_month = 100_000_000
seconds_per_month = 30 * 24 * 3600
writes_per_s = new_urls_per_month / seconds_per_month
reads_per_s = writes_per_s * 100 # 100:1 read/write ratio
bytes_per_row = 500
five_year_tb = new_urls_per_month * 60 * bytes_per_row / 1e12
print(round(writes_per_s), round(reads_per_s), five_year_tb)Hint 1 of 1
100,000,000 / 2,592,000 ≈ ?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A 39 3858 3.0
Correct. About 39 writes/s, 3,858 reads/s, 3 TB over five years.
A 30-day month has 2,592,000 seconds, so 100 M writes is about 39 a second and 100× that is about 3,858 reads. Five years is 60 months × 100 M rows × 500 B, which is 3 × 10¹² B or 3 TB.
Why not the others?
- B
39 39 3.0. Reads are 100× writes. - C
3858 39 3.0. Writes and reads are swapped. - D
39 3858 0.25. 100M × 60 months × 500 B is 3 × 10¹² bytes.