dynamic analysis
play

Dynamic Analysis 17-654/17-754: Analysis of Software Artifacts - PDF document

Dynamic Analysis 17-654/17-754: Analysis of Software Artifacts Jonathan Aldrich Part 1: Performance Analysis Your boss tells you, make it run faster. What do you do?


  1. Dynamic Analysis 17-654/17-754: Analysis of Software Artifacts Jonathan Aldrich � Part 1: Performance Analysis • Your boss tells you, “make it run faster.” What do you do? ������������� ������������������������������������������� � ���������������� 1

  2. Speedup Analysis Scenario • Assumptions • Procedure x takes 75% of execution time • We can speed up x by a factor of 3 • How much faster will the program run? ������������� ������������������������������������������� � ���������������� Amdahl’s Law • P = % of program you can speed up • S = speedup of that part of the program • Maximum overall speedup: 1 (1-P) + P/S time to run time to run rest of sped-up program program part ������������� ������������������������������������������� ���������������� 2

  3. 80/20 rule (Pareto principle) • 20% of the program takes 80% of the time • No point in optimizing anything until you know what 20% is causing the problem! • Another way of stating Amdahl’s law ������������� ������������������������������������������� � ���������������� Getting Good Performance • What matters? • What doesn’t? • Algorithms • Inlining vs. calls • Parallelism • field reads vs. • Cache accessors performance • Recursion vs. • Caching loops • trade space for time • Low-level • Doing less work arithmetic • trade precision for time What’s the cost of optimization? ������������� ������������������������������������������� � ���������������� 3

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend