[R] System.time
Wacek Kusnierczyk
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Thu Feb 19 12:19:46 CET 2009
Wacek Kusnierczyk wrote:
>
> to contribute my few cents, here's a simple benchmarking routine,
> inspired by the perl module Benchmark. it allows one to benchmark an
> arbitrary number of expressions with an arbitrary number of
> replications, and provides a summary matrix with selected timings.
>
>
<snip>
> it's rudimentary and not fool-proof, but might be helpful if used with
> care. (the nested do.call-rbind-lapply sequence can surely be
> simplified, but i could not resist the pattern. someone once wrote that
> if you need more than three (five?) levels of indentation in your code,
> there must be something wrong with it; presumably, he was a fortran
> programmer.)
>
i have cleaned-up the code, removing the fancy nested structure. the
code plus detailed documentation is available from googlecode [1], and i
stop the self-marketing here.
vQ
[1] http://code.google.com/p/rbenchmark/
More information about the R-help
mailing list