donnemartin / system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Other
268.24k stars 45.36k forks source link

nit: Powers of two or powers of ten? #562

Open robert-blankenship opened 3 years ago

robert-blankenship commented 3 years ago

From the article:

Power           Exact Value         Approx Value        Bytes
---------------------------------------------------------------
7                             128
8                             256
10                           1024   1 thousand           1 KB
16                         65,536                       64 KB
20                      1,048,576   1 million            1 MB
30                  1,073,741,824   1 billion            1 GB
32                  4,294,967,296                        4 GB
40              1,099,511,627,776   1 trillion           1 TB

GB is intended to mean 10^9 bytes. GiB is the proper unit for 2^30 bytes.

Source, google: 1 GB: https://www.google.com/search?q=1+GB&sxsrf=ALeKk03OI5X-KAe6bmGsX0EiWQh0mSdA5w%3A1629669151552&ei=H8ciYfidIdq80PEP3bGtkA8&oq=1+GB&gs_lcp=Cgdnd3Mtd2l6EAMyBQgAEIAEMgUIABCABDIICAAQgAQQsQMyBQgAEIAEMgsILhCABBDHARCvATIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEOg4IABCxAxCDARCwAxCRAjoICAAQsAMQkQI6CQgAELADEAcQHjoICAAQgAQQsAM6BwgjEOoCECc6BAgjECc6BAgAEEM6BAguEENKBAhBGAFQ2eUDWKrsA2C47QNoAnAAeACAAbUCiAHtBZIBBzAuMy4wLjGYAQCgAQGwAQrIAQrAAQE&sclient=gws-wiz&ved=0ahUKEwi4qYTXzsXyAhVaHjQIHd1YC_IQ4dUDCA4&uact=5 1 GiB: https://www.google.com/search?q=1+GiB&sxsrf=ALeKk01fSgrU9uJQxWJAB06xNoH5e6xr0Q%3A1629669215711&ei=X8ciYaDuKqe40PEP1b-OsA0&oq=1+GiB&gs_lcp=Cgdnd3Mtd2l6EAMyBAgjECcyBAgAEEMyBAgAEEMyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEMgUIABCABDIFCAAQgAQyBQgAEIAEOgcIABBHELADOhEIABCwAxCKAxC3AxDUAxDlAkoECEEYAFChEFihEGDfEmgBcAJ4AIABmAKIAbQDkgEFMC4xLjGYAQCgAQHIAQrAAQE&sclient=gws-wiz&ved=0ahUKEwjgmdD1zsXyAhUnHDQIHdWfA9YQ4dUDCA4&uact=5

dennisgit282 commented 7 months ago

Your chart is based on powers of 2. I have seen GB more commonly so I suppose that may be better, although a power of 2 is more closely matched with bits.