performance

Sub-cards (0)Archived
Comments (3)
Reply

A fun case study in low-level optimizations: https://media.handmade-seattle.com/context-is-everything/

Reply

https://www.youtube.com/watch?v=r-TLSBdHe1A

Non-obvious things that can affect execution time:

  • link order (affects code layout, changes function addresses)

  • environment variables (moves the program stack)

Up to 40% difference claimed in the talk.

Profile picture

Use their tool “Stabilizer” for performance measurement. It randomizes the layout at runtime to eliminate the bias of code layout.

Profile picture

The talk also discusses the relation between throughput and latency according to Little’s Law.