bigobenchmark: bigobenchmark runner

Description Usage Arguments Value Author(s) Examples

Description

bigobenchmark runner

Usage

1
2
bigobenchmark(..., args = NULL, list = NULL, times = 100L, check = NULL,
  control = list())

Arguments

...

Expressions to benchmark. Passed to microbenchmark.

args

List of arguments to run functions on.

list

List of unevaluated expression to benchmark. Passed to microbenchmark.

times

Number of times to evaluate the expression. Passed to microbenchmark.

check

Function to check if the expressions are equal. By default NULL which omits the check. Passed to microbenchmark.

control

List of control arguments. See Details section for microbenchmark. Passed to microbenchmark.

Value

An object of class bigobenchmark.

Author(s)

Andrew Prokhorenkov

Examples

1
2
3
# Measure difference between linear and quadratic functions
bench <- bigobenchmark(cumsum(1:n), cumprod(1:n), args=seq(from=1000, to=10000, length.out = 50))
bench

m0nhawk/bigobenchmark documentation built on May 3, 2019, 9 p.m.