README.md

Treeprof - Pre-release

NOTE: This is an in-development package. It should work in most cases, but hasn't been extensively tested and likely contains bugs. If enough interest develops for this package we will work to produce a stable release.

Overview

Yet another R benchmarking package. Here is why you might be interested in it:

Here is some a snippet of output:

rep---------------------------------------------- :  72 -   0
|   rep.factor----------------------------------- :  72 -   0
|       structure-------------------------------- :  55 -  46
|       |   levels------------------------------- :   4 -   4
|       |   %in%--------------------------------- :   2 -   1
|       |   |   match---------------------------- :   1 -   1
|       |   match-------------------------------- :   2 -   2
|       |   class-------------------------------- :   1 -   1
|       NextMethod------------------------------- :  17 -  17
make.names--------------------------------------- :   2 -   1
|   make.unique---------------------------------- :   1 -   1
unclass------------------------------------------ :   2 -   2
as.list------------------------------------------ :   3 -   2
|   as.list.default------------------------------ :   1 -   1

Where the first column is the total time and the second is self time.

Usage

Basic Usage

Can't get much simpler:

treeprof(bench_mark_me())

This will output the tree to screen.

Shinify!

But the main use case for treeprof is through the Shiny interactive interface. This is also very simple:

x <- treeprof(bench_mark_me())
shinyfy(x)

This will launch a Shiny app that allows you to explore your benchmarks in depth and detail.



brodieG/treeprof documentation built on Nov. 11, 2021, 1:36 a.m.