The effect of debug mode when benchmarking R package performance (CC302)
When benchmarking the performance of C++ code in R packages, it is important to recognize that the code is compiled in debug mode. This mode is slower than what your user will experience when they install the package on their own computer. In this episode, Pat shows two ways of switching between debug and release mode. He uses the mark function from the {bench} package to test the speed and memory usage of his code written with the help of the {Rcpp} package. This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier for classifying 16S rRNA gene sequences.
Code
You can browse the state of the repositories at the