Programmer must know the delay time

Source: Internet
Author: User

L1 Cache 0.5ns

Transfer, branch prediction 5ns

L2 Cache 7ns 14 times times L1 Cache

Lock \ Unlock 25ns

Access memory 100ns 20 times times L2 cache, 200 times times L1 Cache

1 K-byte compression (Zippy) 3ns

Send 1k bytes 10us on the precursor NIC

SSD Random Read 4K data 150us

Read 1MB data from memory sequence 250US

Same data center round trip 500US

SSD sequential read 1MB data 1ms 4 times times Memory

Mechanical disk seek 10ms 20 times times transfer data in the same data center

Mechanical disk sequential read 1MB 20ms 80 times x memory, 20 times times SSD

https://gist.github.com/jboner/2841832

Programmer must know the delay time

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.