Description Usage Arguments Details Value Examples
analyzeTime
compares the time it takes to run two functions
1 | analyzeTime(title, fill = c("cornflowerblue", "#009E73"), func1, func2)
|
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 |
This function takes two functions and displays the user time each took, as well as a bar graph of the comparison
a bar graph displaying the user time comparison of the two functions
1 | analyzeTime(title = "Fibonacci vs. Memoized Fibonacci", func1 = fib(30), func2 = fib_memoized(30,createList(30)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.