8000 GitHub - psolaimani/BenchmarkR: a simple benchmark/profiling tool for R scripts
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

psolaimani/BenchmarkR

Repository files navigation

benchmarkR

Build Status codecov.io Gitter

a simple benchmark/profiling tool for R scripts.

Usage:

benchmarkSource("/location/of/R/script.R")
benchmarkSource("/location/of/R/script.R",timed_fun = data.frame(fun,pkg,prc,typ))

installs all packages used by the script

returns the runningtime of the R script provided

prints the benchmarking details to the console

benchmarkSource("/location/of/R/script.R", dt)
# dt is a data.frame that contains packages/functions that should be profiled
# columns: fun, pkg, process, type
# example: 
#	dt <-	data.frame(
#				fun = c("fread"), 
#				pkg = c("data.table"), 
#				prc = c("READ"), 
#				typ = c("IO")
#		)

functions as previous example but times the provided functions and outputs/returns runningtime of the script minus timed used by profiled functions.

About

a simple benchmark/profiling tool for R scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0