View source: R/bigobenchmark.R
bigobenchmark | R Documentation |
bigobenchmark runner
bigobenchmark(..., args = NULL, list = NULL, times = 100L, check = NULL,
control = list())
... |
Expressions to benchmark. Passed to |
args |
List of arguments to run functions on. |
list |
List of unevaluated expression to benchmark. Passed to |
times |
Number of times to evaluate the expression. Passed to |
check |
Function to check if the expressions are equal. By default |
control |
List of control arguments. See Details section for |
An object of class bigobenchmark
.
Andrew Prokhorenkov
# Measure difference between linear and quadratic functions
bench <- bigobenchmark(1:n, for(i in 1:n) for(i in 1:n) 1:n, args=seq(from=1, to=100, length.out = 50))
bench
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.