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
(d) Calculating the number of lines
I got this question in an interview for internship.
This is a very interesting question from JavaScript Benchmarking and Logging with perfLogger topic in division Parsing, Benchmarking and Logging of JavaScript