Background:
This is the "microbenchmark" package for R:
https://cran.r-project.org/web/packages/microbenchmark/index.html
The first line in the reference manual says that it is built for "Accurate Timing Functions".
One problem with this is the intrinsic computer-time vs. computer-memory trade-off. Some solutions are memory intensive, but CPU fast. Some are CPU intensive, but have a very small memory footprint.
Question:
How do I simultaneously, and with good resolution, benchmark/microbenchmark not only the execution time, but the memory use during execution in R?
microbenchmark
, I suggest (request?) you provide up a quick self-answer. If you don't have the time, perhaps you could suggest aprofvis
issue suggesting the use-case, I know I'd "+1" it. – Romona