Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide the solution for this problem with as much as an explanation, please. Thank You Write a simple benchmarking program to roughly approximate the

image text in transcribed

Please provide the solution for this problem with as much as an explanation, please. Thank You

Write a simple benchmarking program to roughly approximate the MIPS and MFLOPS rate of your computer and use it to calculate the performance of your computer. Show the numerical answer for MIPS and MFLOPS, and then show the source code of your program, all embedded in your PDF file assignment submission. Develop your solution based on the following idea: Use any programming language to write a program that prints the execution time consider using Java currentTimeMillis() method) of two loops: the second loop should execute one more instruction (or one more floating point operation in case of measuring MFLOPS) than the first one. Then the difference in execution time between two loops approximates the execution time of the extra instructions in the second loop and can be used to approximate MIPS and MFLOPS. (Note: While this approach might work on a simple computer with a single threaded execution of instructions, the modern microprocessors attempt executing multiple instructions in parallel, which will not allow for accurate benchmarking using such a simple approach.) Write a simple benchmarking program to roughly approximate the MIPS and MFLOPS rate of your computer and use it to calculate the performance of your computer. Show the numerical answer for MIPS and MFLOPS, and then show the source code of your program, all embedded in your PDF file assignment submission. Develop your solution based on the following idea: Use any programming language to write a program that prints the execution time consider using Java currentTimeMillis() method) of two loops: the second loop should execute one more instruction (or one more floating point operation in case of measuring MFLOPS) than the first one. Then the difference in execution time between two loops approximates the execution time of the extra instructions in the second loop and can be used to approximate MIPS and MFLOPS. (Note: While this approach might work on a simple computer with a single threaded execution of instructions, the modern microprocessors attempt executing multiple instructions in parallel, which will not allow for accurate benchmarking using such a simple approach.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago

Question

Did the team members feel that their work mattered

Answered: 1 week ago