Performance & Measuring Flashcards

1
Q

Speedup

A

old time/new time
assuming old time is longer than new time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Amdahl’s Law equation

A

speedup = 1/ ( (1 - f) + (f/s) )
f is the fraction of time spend in optimisable code
s is the speed up of the optimized code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Amdahl’s Law in words

A

The maximum speedup of a program is limited by the fraction of the program that can not be improved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Properties to compare processors

A

the time in seconds to run a program/benchmark.
time = no. of instructions x CPI x cycle period

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Properties CANNOT used to compare processors

A

clock frequency, cycles per instructions, instruction per cycle,no. of floating point operations done per second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What information does gprof provide?

A

count and measures where time is spend.

how much time the program spends running a function. Gives insight to where time is spend.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What information does gcov provide?

A

gives counts for each line of code. Decide which loops are most important and which if/else statements are most important to the program. Like the one ran most. Basically path most taken. Or the parts that really determine the logic of the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does gprof work?

A

Periodically interrupts program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Observer Effect

A

when you want to observe how a program runs, you need to add code to it and change the way it is run.

effects: slows down execution time and size of program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly