In case you can save n,log(n),runtime(n)
:

You can use 3 visualization approaches (I used Excel since it is easy and fast):
- Draw a QQ-plot between log(n) and your run time:

This figure shows you the difference between the 'Theoretical' run time function and the 'Empirical' run time function. A straight line (or close) implies that they are close.
- Draw two plots on the same graph: the horizontal axes is n, and the two functions are log(n) and the run time you obtained for each n:

- The third analysis is the statistical approach: plot a graph where the horizontal axis is n, and the vertical axes is runtime(n). Now, add a logarithmic trend line and Rsquare.

The trend line can give you the best a
,b
where runtime(n)=a*log(n)+b
. The correlation between the runtime and log(n) is better as Rsquare gets higher.