CS 147: Computer Systems Performance Analysis Specifics of - - PowerPoint PPT Presentation

cs 147 computer systems performance analysis
SMART_READER_LITE
LIVE PREVIEW

CS 147: Computer Systems Performance Analysis Specifics of - - PowerPoint PPT Presentation

CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Specifics of Graphical Presentation CS 147: Computer Systems Performance Analysis Specifics of Graphical Presentation 1 / 35 Overview CS147 Overview 2015-06-15 Specific


slide-1
SLIDE 1

CS 147: Computer Systems Performance Analysis

Specifics of Graphical Presentation

1 / 35

CS 147: Computer Systems Performance Analysis

Specifics of Graphical Presentation

2015-06-15

CS147

slide-2
SLIDE 2

Overview

Specific Things to Do Give Information the Reader Needs Limit Complexity and Confusion Have a Point Show Statistics Graphically Don’t Always Use Graphics Discuss It in the Text Principles of Esthetics Use Appropriate Format and Design Use Words, Numbers, Drawings Together Reflect Balance, Proportion, Relevant Scale Keep Detail and Complexity Accessible Have a Story About the Data Do a Professional Job of Drawing Avoid Decoration and Chartjunk

2 / 35

Overview

Specific Things to Do Give Information the Reader Needs Limit Complexity and Confusion Have a Point Show Statistics Graphically Don’t Always Use Graphics Discuss It in the Text Principles of Esthetics Use Appropriate Format and Design Use Words, Numbers, Drawings Together Reflect Balance, Proportion, Relevant Scale Keep Detail and Complexity Accessible Have a Story About the Data Do a Professional Job of Drawing Avoid Decoration and Chartjunk

2015-06-15

CS147 Overview

slide-3
SLIDE 3

Specific Things to Do Give Information the Reader Needs

Give Information the Reader Needs

◮ Show informative axes

◮ Use axes to indicate range

◮ Label things fully and intelligently ◮ Highlight important points on the graph

3 / 35

Give Information the Reader Needs

◮ Show informative axes ◮ Use axes to indicate range ◮ Label things fully and intelligently ◮ Highlight important points on the graph

2015-06-15

CS147 Specific Things to Do Give Information the Reader Needs Give Information the Reader Needs

slide-4
SLIDE 4

Specific Things to Do Give Information the Reader Needs

Giving Information the Reader Needs

1 2 3 4 20 40 60 80 100 E W N

4 / 35

Giving Information the Reader Needs

1 2 3 4 20 40 60 80 100 E W N

2015-06-15

CS147 Specific Things to Do Give Information the Reader Needs Giving Information the Reader Needs

slide-5
SLIDE 5

Specific Things to Do Give Information the Reader Needs

Giving Information the Reader Needs

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 20 40 60 80 100 Sales in Millions

East West North Microsoft Contract Signed 5 / 35

Giving Information the Reader Needs

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 20 40 60 80 100 Sales in Millions

East West North Microsoft Contract Signed

2015-06-15

CS147 Specific Things to Do Give Information the Reader Needs Giving Information the Reader Needs

slide-6
SLIDE 6

Specific Things to Do Limit Complexity and Confusion

Limit Complexity and Confusion

◮ Not too many curves ◮ Single scale for all curves ◮ No “extra” curves ◮ No pointless decoration (“ducks”)

6 / 35

Limit Complexity and Confusion

◮ Not too many curves ◮ Single scale for all curves ◮ No “extra” curves ◮ No pointless decoration (“ducks”)

2015-06-15

CS147 Specific Things to Do Limit Complexity and Confusion Limit Complexity and Confusion

slide-7
SLIDE 7

Specific Things to Do Limit Complexity and Confusion

Limiting Complexity and Confusion

7 / 35

Limiting Complexity and Confusion

2015-06-15

CS147 Specific Things to Do Limit Complexity and Confusion Limiting Complexity and Confusion

slide-8
SLIDE 8

Specific Things to Do Limit Complexity and Confusion

Limiting Complexity and Confusion

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 20 40 60 80 100

Millions

  • f

Dollars

Japan Europe Mexico 8 / 35

Limiting Complexity and Confusion

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 20 40 60 80 100 Millions

  • f

Dollars Japan Europe Mexico

2015-06-15

CS147 Specific Things to Do Limit Complexity and Confusion Limiting Complexity and Confusion

slide-9
SLIDE 9

Specific Things to Do Have a Point

Have a Point

◮ Graphs should add information not otherwise available to

reader

◮ Don’t plot data just because you collected it ◮ Know what you’re trying to show, and make sure the graph

shows it

9 / 35

Have a Point

◮ Graphs should add information not otherwise available to

reader

◮ Don’t plot data just because you collected it ◮ Know what you’re trying to show, and make sure the graph

shows it

2015-06-15

CS147 Specific Things to Do Have a Point Have a Point

slide-10
SLIDE 10

Specific Things to Do Have a Point

Having a Point

◮ Sales were up 15% this quarter:

1st Qtr 2nd Qtr 20 40 60 80 100 120 140

10 / 35

Having a Point

◮ Sales were up 15% this quarter: 1st Qtr 2nd Qtr 20 40 60 80 100 120 140

2015-06-15

CS147 Specific Things to Do Have a Point Having a Point

slide-11
SLIDE 11

Specific Things to Do Have a Point

Having a Point

1 Replica 2 Replicas 3 Replicas 4 Replicas 0.00 0.25 0.50 0.75 1.00

User Time of Copy Benchmarks (Seconds)

cp rcp 11 / 35

Having a Point

1 Replica 2 Replicas 3 Replicas 4 Replicas 0.00 0.25 0.50 0.75 1.00 User Time of Copy Benchmarks (Seconds)

cp rcp

2015-06-15

CS147 Specific Things to Do Have a Point Having a Point

slide-12
SLIDE 12

Specific Things to Do Have a Point

Having a Point

Modem Ethernet ATM Satellite 1000000 2000000 3000000 4000000 5000000

Throughput Latency

12 / 35

Having a Point

Modem Ethernet ATM Satellite 1000000 2000000 3000000 4000000 5000000 Throughput Latency

2015-06-15

CS147 Specific Things to Do Have a Point Having a Point

slide-13
SLIDE 13

Specific Things to Do Have a Point

Having a Point

0.01 0.1 1 10 100 1000

Throughput (Mbits/sec)

0.001 0.01 0.1 1 10 100 1000

Latency (ms)

Modem Ethernet ATM Satellite

13 / 35

Having a Point

0.01 0.1 1 10 100 1000 Throughput (Mbits/sec) 0.001 0.01 0.1 1 10 100 1000 Latency (ms) Modem Ethernet ATM Satellite

2015-06-15

CS147 Specific Things to Do Have a Point Having a Point

slide-14
SLIDE 14

Specific Things to Do Show Statistics Graphically

Show Statistics Graphically

◮ Put bars in a reasonable order

◮ Geographical ◮ Best to worst ◮ Even alphabetic

◮ Make bar widths reflect interval widths

◮ Hard to do with most graphing software

◮ Show confidence intervals on the graph

◮ Examples will be shown later 14 / 35

Show Statistics Graphically

◮ Put bars in a reasonable order ◮ Geographical ◮ Best to worst ◮ Even alphabetic ◮ Make bar widths reflect interval widths ◮ Hard to do with most graphing software ◮ Show confidence intervals on the graph ◮ Examples will be shown later

2015-06-15

CS147 Specific Things to Do Show Statistics Graphically Show Statistics Graphically

slide-15
SLIDE 15

Specific Things to Do Don’t Always Use Graphics

Don’t Always Use Graphics

◮ Tables are best for small sets of numbers

◮ Tufte says 20 or fewer

◮ Also best for certain arrangements of data

◮ E.g., 10 graphs of 3 points each

◮ Sometimes a simple sentence will do ◮ Always ask whether the chart is the best way to present the

information

◮ And whether it brings out your message 15 / 35

Don’t Always Use Graphics

◮ Tables are best for small sets of numbers ◮ Tufte says 20 or fewer ◮ Also best for certain arrangements of data ◮ E.g., 10 graphs of 3 points each ◮ Sometimes a simple sentence will do ◮ Always ask whether the chart is the best way to present the

information

◮ And whether it brings out your message

2015-06-15

CS147 Specific Things to Do Don’t Always Use Graphics Don’t Always Use Graphics

slide-16
SLIDE 16

Specific Things to Do Don’t Always Use Graphics

Text Would Have Been Better

Dem Rep Indep

Carter Reagan Anderson

Lib Mod Cons Lib Dems Mod Dems Cons Dems Lib Ind Mod Ind Cons Ind

16 / 35

Text Would Have Been Better

Dem Rep Indep Carter Reagan Anderson Lib Mod Cons Lib Dems Mod Dems Cons Dems Lib Ind Mod Ind Cons Ind

2015-06-15

CS147 Specific Things to Do Don’t Always Use Graphics Text Would Have Been Better

slide-17
SLIDE 17

Specific Things to Do Discuss It in the Text

Discuss It in the Text

◮ Figures should be self-explanatory

◮ Many people scan papers, just look at graphs ◮ Good graphs build interest, “hook” readers ◮ Caption should help that process

◮ But text should highlight and aid figures

◮ Tell readers when to look at figures ◮ Point out what figure is telling them ◮ Expand on what figure has to say ◮ Put figures near text so it’s easy to find 17 / 35

Discuss It in the Text

◮ Figures should be self-explanatory ◮ Many people scan papers, just look at graphs ◮ Good graphs build interest, “hook” readers ◮ Caption should help that process ◮ But text should highlight and aid figures ◮ Tell readers when to look at figures ◮ Point out what figure is telling them ◮ Expand on what figure has to say ◮ Put figures near text so it’s easy to find

2015-06-15

CS147 Specific Things to Do Discuss It in the Text Discuss It in the Text

slide-18
SLIDE 18

Principles of Esthetics

Esthetics

◮ Not everyone is an artist

◮ But figures should be visually pleasing

◮ Elegance is found in

◮ Simplicity of design ◮ Complexity of data 18 / 35

Esthetics

◮ Not everyone is an artist ◮ But figures should be visually pleasing ◮ Elegance is found in ◮ Simplicity of design ◮ Complexity of data

2015-06-15

CS147 Principles of Esthetics Esthetics

slide-19
SLIDE 19

Principles of Esthetics Use Appropriate Format and Design

Use Appropriate Format and Design

◮ Don’t automatically draw a graph

◮ Mentioned before

◮ Choose graphical format carefully ◮ Sometimes “text graphic” works best

◮ Use text placement to communicate numbers ◮ Very close to being a table 19 / 35

Use Appropriate Format and Design

◮ Don’t automatically draw a graph ◮ Mentioned before ◮ Choose graphical format carefully ◮ Sometimes “text graphic” works best ◮ Use text placement to communicate numbers ◮ Very close to being a table

2015-06-15

CS147 Principles of Esthetics Use Appropriate Format and Design Use Appropriate Format and Design

slide-20
SLIDE 20

Principles of Esthetics Use Appropriate Format and Design

Using Text as a Graphic

CEA: +4.7 WEF: 6.8 DR: +4.5 CB: 6.7 NABE: +4.5 NABE: 6.7 WEF: +4.5

About a year ago, eight forecasters were asked for their predictions on some key economic indicators. Here’s how the forecasts stack up against the probable 1978 results (shown in the black panel).

IBM: 6.6 CBO: +4.4 DR: 6.5 CB: +4.2 NABE: +6.2 CBO: 6.3 IBM: +4.1 IBM: +5.9 WEF: +21 CEA: 6.3 GNP: +3.8 IPG: +5.8 CPI: +7.7 Profits: +13.3 Unempl: 6.0 CE: +2.9 CB: +5.5 IBM: +6.6 DR: +10.5 DR: +5.2 NABE: +6.5 IBM: +10.4 WEF: +4.8 CB: +6.2 CE: +6.5

(New York Times,

  • Jan. 2, 1979)

20 / 35

Using Text as a Graphic

CEA: +4.7 WEF: 6.8 DR: +4.5 CB: 6.7 NABE: +4.5 NABE: 6.7 WEF: +4.5 About a year ago, eight forecasters were asked for their predictions on some key economic indicators. Here’s how the forecasts stack up against the probable 1978 results (shown in the black panel). IBM: 6.6 CBO: +4.4 DR: 6.5 CB: +4.2 NABE: +6.2 CBO: 6.3 IBM: +4.1 IBM: +5.9 WEF: +21 CEA: 6.3 GNP: +3.8 IPG: +5.8 CPI: +7.7 Profits: +13.3 Unempl: 6.0 CE: +2.9 CB: +5.5 IBM: +6.6 DR: +10.5 DR: +5.2 NABE: +6.5 IBM: +10.4 WEF: +4.8 CB: +6.2 CE: +6.5 (New York Times,

  • Jan. 2, 1979)

2015-06-15

CS147 Principles of Esthetics Use Appropriate Format and Design Using Text as a Graphic

slide-21
SLIDE 21

Principles of Esthetics Use Appropriate Format and Design

The Stem-and-Leaf Plot

From Tukey, via Tufte, heights of some volcanos:

0|9 = 900 feet 0|98766562 1|97719630 2|99987766544422211009850 3|876655412099551426 4|9998844331929433361107 5|97666666554422210097731 6|898665441077761065 7|98855431100652108073 8|653322122937 9|377655421000493 10|0984433165212 Stem-and-leaf displays: 11|4963201631 heights of 218 volcanos, unit 100 feet 12|45421164 13|47830 14|00 15|676 16|52 17|92 18|5 19|3 = 19,300 feet 19|39730

21 / 35

The Stem-and-Leaf Plot

From Tukey, via Tufte, heights of some volcanos:

0|9 = 900 feet 0|98766562 1|97719630 2|99987766544422211009850 3|876655412099551426 4|9998844331929433361107 5|97666666554422210097731 6|898665441077761065 7|98855431100652108073 8|653322122937 9|377655421000493 10|0984433165212 Stem-and-leaf displays: 11|4963201631 heights of 218 volcanos, unit 100 feet 12|45421164 13|47830 14|00 15|676 16|52 17|92 18|5 19|3 = 19,300 feet 19|39730

2015-06-15

CS147 Principles of Esthetics Use Appropriate Format and Design The Stem-and-Leaf Plot

slide-22
SLIDE 22

Principles of Esthetics Use Appropriate Format and Design

Choosing a Graphical Format

◮ Many options, more being invented all the time

◮ Examples will be given later ◮ See Jain for some commonly useful ones ◮ Tufte shows ways to get creative

◮ Choose a format that reflects your data

◮ Or that helps you analyze it yourself 22 / 35

Choosing a Graphical Format

◮ Many options, more being invented all the time ◮ Examples will be given later ◮ See Jain for some commonly useful ones ◮ Tufte shows ways to get creative ◮ Choose a format that reflects your data ◮ Or that helps you analyze it yourself

2015-06-15

CS147 Principles of Esthetics Use Appropriate Format and Design Choosing a Graphical Format

slide-23
SLIDE 23

Principles of Esthetics Use Words, Numbers, Drawings Together

Use Words, Numbers, Drawings Together

◮ Put graphics near or in text that discusses them

◮ Even if you have to murder your word processor

◮ Integrate text into graphics ◮ Tufte: “Data graphics are paragraphs about data and should

be treated as such”

23 / 35

Use Words, Numbers, Drawings Together

◮ Put graphics near or in text that discusses them ◮ Even if you have to murder your word processor ◮ Integrate text into graphics ◮ Tufte: “Data graphics are paragraphs about data and should

be treated as such”

2015-06-15

CS147 Principles of Esthetics Use Words, Numbers, Drawings Together Use Words, Numbers, Drawings Together

slide-24
SLIDE 24

Principles of Esthetics Reflect Balance, Proportion, Relevant Scale

Reflect Balance, Proportion, Relevant Scale

◮ Much of this boils down to “artistic sense” ◮ Make sure things are big enough to read

◮ Tiny type is OK only for young people!

◮ Keep lines thin

◮ But use heavier lines to indicate important information

◮ Keep horizontal larger than vertical

◮ About 50% larger works well 24 / 35

Reflect Balance, Proportion, Relevant Scale

◮ Much of this boils down to “artistic sense” ◮ Make sure things are big enough to read ◮ Tiny type is OK only for young people! ◮ Keep lines thin ◮ But use heavier lines to indicate important information ◮ Keep horizontal larger than vertical ◮ About 50% larger works well

2015-06-15

CS147 Principles of Esthetics Reflect Balance, Proportion, Relevant Scale Reflect Balance, Proportion, Relevant Scale

slide-25
SLIDE 25

Principles of Esthetics Reflect Balance, Proportion, Relevant Scale

Poor Balance and Proportion

◮ Sales in the North

and West districts were steady through all quarters

◮ East sales varied

widely, significantly

  • utperforming the
  • ther districts in the

third quarter

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 10 20 30 40 50 60 70 80 90 100 25 / 35

Poor Balance and Proportion

◮ Sales in the North

and West districts were steady through all quarters

◮ East sales varied

widely, significantly

  • utperforming the
  • ther districts in the

third quarter

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr 10 20 30 40 50 60 70 80 90 100

2015-06-15

CS147 Principles of Esthetics Reflect Balance, Proportion, Relevant Scale Poor Balance and Proportion

slide-26
SLIDE 26

Principles of Esthetics Reflect Balance, Proportion, Relevant Scale

Better Proportion

◮ Sales in the North and West districts were steady through all

quarters

◮ East sales varied widely, significantly outperforming the other

districts in the third quarter

Q1 Q2 Q3 Q4 50 100 26 / 35

Better Proportion

◮ Sales in the North and West districts were steady through all

quarters

◮ East sales varied widely, significantly outperforming the other

districts in the third quarter

Q1 Q2 Q3 Q4 50 100

2015-06-15

CS147 Principles of Esthetics Reflect Balance, Proportion, Relevant Scale Better Proportion

slide-27
SLIDE 27

Principles of Esthetics Keep Detail and Complexity Accessible

Keep Detail and Complexity Accessible

◮ Make your graphics friendly:

◮ Avoid abbreviations and encodings ◮ Run words left-to-right ◮ Explain data with little messages ◮ Label graphics, don’t use elaborate shadings and a complex

legend

◮ Avoid red/green distinctions ◮ Use clean, serif fonts in mixed case 27 / 35

Keep Detail and Complexity Accessible

◮ Make your graphics friendly: ◮ Avoid abbreviations and encodings ◮ Run words left-to-right ◮ Explain data with little messages ◮ Label graphics, don’t use elaborate shadings and a complex legend ◮ Avoid red/green distinctions ◮ Use clean, serif fonts in mixed case

2015-06-15

CS147 Principles of Esthetics Keep Detail and Complexity Accessible Keep Detail and Complexity Accessible

slide-28
SLIDE 28

Principles of Esthetics Keep Detail and Complexity Accessible

An Unfriendly Graph

1 R E P L 2 3 4 5 6 7 8 50 100 150 200 250 300 350 400 450

Time

CP FIND FINDGREP GREP LS MAB RCP RM

28 / 35

An Unfriendly Graph

1 R E P L 2 3 4 5 6 7 8 50 100 150 200 250 300 350 400 450 Time CP FIND FINDGREP GREP LS MAB RCP RM

2015-06-15

CS147 Principles of Esthetics Keep Detail and Complexity Accessible An Unfriendly Graph

slide-29
SLIDE 29

Principles of Esthetics Keep Detail and Complexity Accessible

A Friendly Version

1 2 3 4 5 6 7 8

Number of Replicas

100 200 300 400

Time in Seconds

Note almost no growth in compile/remove times

Copy Compile Remove

29 / 35

A Friendly Version

1 2 3 4 5 6 7 8 Number of Replicas 100 200 300 400 Time in Seconds Note almost no growth in compile/remove times Copy Compile Remove

2015-06-15

CS147 Principles of Esthetics Keep Detail and Complexity Accessible A Friendly Version

slide-30
SLIDE 30

Principles of Esthetics Keep Detail and Complexity Accessible

Even Friendlier

Copy Compile Remove

Benchmark and Number of Replicas

100 200 300 400

Time in Seconds

1 Replica 8 Replicas (note departure from linearity) 1 1 1 4 4 4 8 8 8 Note slower growth in compile and remove times

30 / 35

Even Friendlier

Copy Compile Remove Benchmark and Number of Replicas 100 200 300 400 Time in Seconds 1 Replica 8 Replicas (note departure from linearity) 1 1 1 4 4 4 8 8 8 Note slower growth in compile and remove times

2015-06-15

CS147 Principles of Esthetics Keep Detail and Complexity Accessible Even Friendlier

slide-31
SLIDE 31

Principles of Esthetics Have a Story About the Data

Have a Story About the Data (Narrative Quality)

◮ May be difficult in technical papers ◮ But think about why you are drawing graph ◮ Example:

◮ Performance is controlled by network speed ◮ But it tops out at high end ◮ And that’s because we hit a CPU bottleneck 31 / 35

Have a Story About the Data (Narrative Quality)

◮ May be difficult in technical papers ◮ But think about why you are drawing graph ◮ Example: ◮ Performance is controlled by network speed ◮ But it tops out at high end ◮ And that’s because we hit a CPU bottleneck

2015-06-15

CS147 Principles of Esthetics Have a Story About the Data Have a Story About the Data (Narrative Quality)

slide-32
SLIDE 32

Principles of Esthetics Have a Story About the Data

Showing a Story About the Data

2 4 6 8 10 12

Network Bandwidth (Mbps)

20 40 60

Transactions per Second

CPU bottleneck reached

32 / 35

Showing a Story About the Data

2 4 6 8 10 12 Network Bandwidth (Mbps) 20 40 60 Transactions per Second CPU bottleneck reached

2015-06-15

CS147 Principles of Esthetics Have a Story About the Data Showing a Story About the Data

slide-33
SLIDE 33

Principles of Esthetics Do a Professional Job of Drawing

Do a Professional Job of Drawing

◮ This is easy with modern tools

◮ But take the time to do it right

◮ Align things carefully ◮ Check final version in format you will use

◮ I.e., print Postscript one last time before submission ◮ Or look at your slides on projection screen ◮ Preferably in presentation room ◮ Color balance varies by projector 33 / 35

Do a Professional Job of Drawing

◮ This is easy with modern tools ◮ But take the time to do it right ◮ Align things carefully ◮ Check final version in format you will use ◮ I.e., print Postscript one last time before submission ◮ Or look at your slides on projection screen ◮ Preferably in presentation room ◮ Color balance varies by projector

2015-06-15

CS147 Principles of Esthetics Do a Professional Job of Drawing Do a Professional Job of Drawing

slide-34
SLIDE 34

Principles of Esthetics Avoid Decoration and Chartjunk

Avoid Decoration and Chartjunk

◮ Powerpoint, etc. make chartjunk easy ◮ Avoid clip art, automatic backgrounds, etc. ◮ Remember: data is the story

◮ Statistics aren’t boring ◮ Uninterested readers aren’t drawn by cartoons ◮ Interested readers are distracted

◮ Does removing it change message?

◮ If not, leave it out 34 / 35

Avoid Decoration and Chartjunk

◮ Powerpoint, etc. make chartjunk easy ◮ Avoid clip art, automatic backgrounds, etc. ◮ Remember: data is the story ◮ Statistics aren’t boring ◮ Uninterested readers aren’t drawn by cartoons ◮ Interested readers are distracted ◮ Does removing it change message? ◮ If not, leave it out

2015-06-15

CS147 Principles of Esthetics Avoid Decoration and Chartjunk Avoid Decoration and Chartjunk

slide-35
SLIDE 35

Principles of Esthetics Avoid Decoration and Chartjunk

Examples of Chartjunk

35 / 35

Examples of Chartjunk

2015-06-15

CS147 Principles of Esthetics Avoid Decoration and Chartjunk Examples of Chartjunk