Skip to content

Instantly share code, notes, and snippets.

@adamhsparks
Created November 7, 2017 04:16
Show Gist options
  • Select an option

  • Save adamhsparks/dcde0b8abe903eb309274e531f817fa0 to your computer and use it in GitHub Desktop.

Select an option

Save adamhsparks/dcde0b8abe903eb309274e531f817fa0 to your computer and use it in GitHub Desktop.
Skeleton for microbenchmarking R code and graphing it
library(microbenchmark)
mbm <- microbenchmark(
one = function(),
two = function(),
times = 50
)
mbm
library(ggplot2)
autoplot(mbm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment