Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started