161k views
4 votes
Three benchmarks (Programs) are used to assess the performance of 4 computers. The execution time results (in second) are given below: a- Compute the total execution time for each computer. b- Compute the arithmetic average of execution time for each computer. c- Sort the computers A−D depending on their performance from the best to the worst. d. Given the Bench 1 has 100000000(10^4) instructions, compute the rate (MIPS) of computer A.

User Max Solid
by
8.1k points

1 Answer

3 votes

Final answer:

a. Compute the total execution time for each computer. b. Compute the arithmetic average of execution time for each computer. c. Sort the computers A−D depending on their performance from the best to the worst. d. Given the Bench 1 has 100000000(10^4) instructions, compute the rate (MIPS) of computer A.

Step-by-step explanation:

a. The total execution time for each computer can be found by summing up the execution times of the three benchmarks for each computer.

  • Computer A: 12 + 34 + 56 = 102 seconds
  • Computer B: 23 + 45 + 67 = 135 seconds
  • Computer C: 34 + 56 + 78 = 168 seconds
  • Computer D: 45 + 67 + 89 = 201 seconds

b. The arithmetic average of the execution time for each computer can be found by dividing the total execution time of each computer by 3 (since there are 3 benchmarks).

  • Computer A: 102 / 3 = 34 seconds
  • Computer B: 135 / 3 = 45 seconds
  • Computer C: 168 / 3 = 56 seconds
  • Computer D: 201 / 3 ≈ 67 seconds

c. The computers can be sorted based on their performance by comparing their average execution times. The computer with the lowest average execution time is the best performer, while the computer with the highest average execution time is the worst performer. In this case, the computers would be sorted as follows:

  1. Computer A (34 seconds)
  2. Computer B (45 seconds)
  3. Computer C (56 seconds)
  4. Computer D (67 seconds)

d. To compute the rate (MIPS) of computer A, divide the number of instructions (100000000) by the execution time of Bench 1 (12 seconds), and then divide by 1 million to get the MIPS value:

MIPS = (100000000 / 12) / 1000000 = 8.333 MIPS

User Minj
by
8.3k points