If you are approximating int(f(x)dx), then you can count how many
times you calculate f(x), as a measure of efficiency. Don't use the matlab
runtime, or any big profiling tools. For this class, we are not
interested in that level of efficiency. You can implement
this in your algorithm. Check how many evaluations you need to do,
and plot it against how accurate the integral is. You can measure the
accuracy to be the difference between the estimate of the integral you
get, and the best estimate you have, or better yet, the log of this
difference.
After plotting the data, you can give a qualitative analysis of the
plots.
Does this makes sense?
Soroosh