Introduction to benchmarking and profiling

When it comes to writing code, performance is always a concern. To measure the performance of code there are two major ways of measurement: Profiling: measuring the time spent on each code section/lineBenchmarking: measuring the overall performance of code compared to a baselineProfilingProfiling is helpful when you want to…