analyzeTime: Time Analysis

Description Usage Arguments Details Value Examples

View source: R/analyzeTime.R

Description

analyzeTime compares the time it takes to run two functions

Usage

1
analyzeTime(title, fill = c("cornflowerblue", "#009E73"), func1, func2)

Arguments

title

title of the graph to be created

fill

a vector of length two of colors for the bargraphs

func1

first function to be analyzed

func2

second function to be analyzed

Details

This function takes two functions and displays the user time each took, as well as a bar graph of the comparison

Value

a bar graph displaying the user time comparison of the two functions

Examples

1
analyzeTime(title = "Fibonacci vs. Memoized Fibonacci", func1 = fib(30), func2 = fib_memoized(30,createList(30)))

cfrusso/ARR documentation built on May 28, 2019, 11:04 p.m.