Upgrade to Pro — share decks privately, control downloads, hide ads and more …

bench

Jim Hester
September 19, 2018

 bench

The bench package, a new take in benchmarking for R

Jim Hester

September 19, 2018
Tweet

More Decks by Jim Hester

Other Decks in Programming

Transcript

  1. CC by RStudio bench ! September 19th 2018 " bench.r-lib.org

    Jim Hester CC-BY-4.0 A new take on benchmarking
  2. "A good programmer… will be wise to look carefully at

    the critical code; but only a!er that code has been identified." - Donald Knuth
  3. "All (tools) should be designed to provide (us) with feedback

    indicating what parts of (our) programs are costing the most" - Donald Knuth
  4. CC by RStudio bench::mark() 1. High precision timers (ns) 2.

    Memory allocations 3. Number and type of R garbage collections 4. Result equality 5. Adaptive stopping 6. Statistics filter GC effects
  5. CC by RStudio bench::mark() 1. Human readable times 2. Human

    readable memory sizes 3. Full results / timings / GCs in list- cols