Vidyalelo
JavaScript · Q33

Parsing, Benchmarking And Logging

Programming · JavaScript · question 33

Q33

Which of the following are ways to benchmark code?

A.
Timing the code
B.
Calculating the number of operations performed
C.
Timing the code & Calculating the number of operations performed
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
There are a couple of ways to benchmark code—either by timing it or by calculating the number of operations performed during execution.