mb: Convenience wrapper for 'microbenchmark::microbenchmark'

Description Usage Arguments

View source: R/utils.R

Description

Convenience wrapper for microbenchmark::microbenchmark

Usage

1
2
3
4
5
6
7
8
9
mb(
  ...,
  list = NULL,
  times = 100L,
  unit,
  check = NULL,
  control = list(),
  setup = NULL
)

Arguments

...

Expressions to benchmark.

list

List of unevaluated expression to benchmark.

times

Number of times to evaluate the expression.

unit

Default unit used in summary and print.

check

A function to check if the expressions are equal. By default NULL which omits the check. In addition to a function, a string can be supplied. The string ‘equal’ will compare all values using all.equal, ‘equivalent’ will compare all values using all.equal and check.attributes = FALSE, and ‘identical’ will compare all values using identical.

control

List of control arguments. See Details.

setup

An unevaluated expression to be run (untimed) before each benchmark expression.


red-swan/swanR documentation built on July 11, 2020, 1:31 a.m.