We address the problem of subdiffusion or normal diffusion to perform a calibration between simulations parameters and those from a subdiffusive model. The theoretical model consists to a generalized diffusion equation with fractional derivatives in time. The data generated by simulations represents continuous-time random walks with controlled mean waiting time and jump length variance to provide a full range of cases between subdiffusion and normal diffusion. From simulations, we compare the accuracy of two methods to obtain the diffusion constant and the order of fractional derivatives: the analysis of the dispersion of the variance in time and an optimized fitting of the histograms of positions with theoretical model solutions. We highlight the connection between the parameters of the simulations those of theoretical models.