Q. Which of the following are ways to benchmark code?
β
Correct Answer: (C)
Timing the code & Calculating the number of operations performed
Explanation: There are a couple of ways to benchmark code—either by timing it or by calculating the number of operations performed during execution.