bigobenchmark: bigobenchmark runner

View source: R/bigobenchmark.R

bigobenchmarkR Documentation

bigobenchmark runner

Description

bigobenchmark runner

Usage

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

# 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


m0nhawk/bigobenchmark documentation built on July 31, 2024, 8:28 a.m.