[Rcpp-devel] Rcpp internal benchmark tool
xian at unm.edu
Sun Dec 9 07:20:23 CET 2012
> On 8 December 2012 at 15:44, Romain Francois wrote:
> | I've been using the microbenchmark package extensively and took
> | inspiration from it to implement a Timer class in Rcpp to measure
> | performance at a lower level.
> That's probably quite useful. I had an older/simpler class here from
> something I had done years ago at work covering the Linux + Windows
> cases. Olaf has more basis covered so this good.
> It is on the border of creeping featuritis though ...
> | - include the Timer.h header, which is **not** automatically added in
> | Rcpp.h:
> ... but that is a fair defence against bloat.
There was some conversation about splitting off these feature requests
into a separate package (RcppExtras?) on list a while back -- obvious
candidates include sample(), the list of R functions that might be
improved in Rcpp (as per Hadley et al's comments), and perhaps this...
I haven't seen any discussion on this in a while. Is this something
that warrants discussion, or something to keep in mind for later?
I'd prefer such a package to depend on RcppArmadillo so that my
implementation of sample() can be easily included. Are there
downsides to this?
A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama!
More information about the Rcpp-devel