This little benchmark compares the times it take to compile a really simple Rcpp example (the example you get from RStudio when you do new C++ file) with Rcpp and Rcpp11.
require(microbenchmark)
compile_Rcpp <- function(){
Rcpp::sourceCpp("/tmp/timesTwo.cpp", rebuild = TRUE )
}
compile_Rcpp11 <- function(){
attributes::sourceCpp( "/tmp/timesTwo.cpp" )
}
These timings come from my iMac running Mavericks.
> microbenchmark( Rcpp = compile_Rcpp(), Rcpp11 = compile_Rcpp11(), times = 10 )
Unit: seconds
expr min lq median uq max neval
Rcpp 3.061308 3.068119 3.069977 3.071560 3.258582 10
Rcpp11 1.475950 1.479628 1.480901 1.485374 1.512100 10