I'm not sure why either, but here's a simpler (and much faster)
illustration of the problem:
library(microbenchmark)
A <- matrix(1:9,3)
replicate(10, microbenchmark(colMeans(A), times = 4)$time)
replicate(10, microbenchmark(A, times = 4)$time)
Hadley
On Mon, Sep 16, 2013 at 8:11 AM, Christophe
Hi the list,
I am using the function microbenchmark to measure the performance of some code. But I notice that
the first execution of the code takes much longueur than the next executions.
I compare it to several executions of the code :
--- 8< --
A <- matrix(1:9,3)
nbReroll <- 1000
te
2 matches
Mail list logo