Skip to content

sgibb/benchgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchgit

Description

This package allows to compare the running time of R functions in different git branches.

Install

install.packages("devtools")
library("devtools")
install_github("benchgit", "sgibb")

Example

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

Contact

You are welcome to:

About

Benchmarking R functions in different git branches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages