This package allows to compare the running time of R functions in different git branches.
install.packages("devtools")
library("devtools")
install_github("benchgit", "sgibb")
library("benchgit")
x <- runif(100)
benchgit(my_fun(x), packagePath="~/mypackage",
branches=c("master", "foo", "bar"), replications=2)
# elapsed avg relative
# master 1.722 0.8610 1.00
# bar 6.021 3.0105 3.50
# foo 26.477 13.2385 15.38
You are welcome to:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.