I am following these lecture slides on Monte Carlo integration with importance sampling. I am just implementing a very simple example: $\int_{0}^{1} e^{x}dx$. For the importance sampling version, I rewrite $\int_{0}^{1} e^{x}dx = \int_{0}^{1} e^{x}/p(x)\cdot p(x)dx$ where $p(x) = 2.5x^{1.5}$. Then
$$\hat{I} = \frac{1}{N}\sum_{j=1}^{N} \frac{f(x_{j})}{p(x_{j})},$$
where $x_{j}$ are sampled from $p(x_{j})$ (I use an inverse transform method here). For the variance, I have $\sigma_{I}^{2} = \hat{\sigma}_{I}^{2}/N$ and
$$\hat{\sigma}_{I}^{2} = \frac{1}{N} \sum_{j=1}^{N} \frac{f(x_{j})^{2}}{g(x_{j})^{2}} - \hat{I}^{2}.$$
I know I should expected the variance to decrease with importance sampling, but a plot of the variance with $N$ shows that not much happens. Can anyone explain to me what I'm doing incorrectly? I'm not sure how the they are able to achieve such a drastic decrease in variance in the lecture slides.