I really want to know what are the main differences between MRO and R. Then I found information that MRO is faster than R because it has multithreading.

I'm really interested, so I want to check it out myself. First, I install MRO + MKL, then I run some script code in MRO and R then calculates the time.
here is my example (matrix multiplication):
start.time <- Sys.time()
d <- numeric(5);
res <- replicate(5, {for(i in 1:3500){d[i] <- print(i)} ; d})
rex=res*res^0.6*res^-1
rex
end.time <- Sys.time()
time.taken <- end.time - start.time
time.taken
But the result of time is no different (almost the same). I will try another calculation, for example gwr (500 data), read and write all the SHP data, but get the same result. Does anyone know why the result is not different? or is my code not complicated enough to check the difference ?, if so, can you give me an example?
source
share