benchmark: Benchmark - Measure time

View source: R/benchmark.R

Benchmark - Measure time R Documentation

Benchmark - Measure time

Description

Benchmark - Measure time.

Usage

benchmark(...,times,envir=parent.frame(),order=NULL)
## S3 method for class 'benchmark'
print(x,...)

Arguments

...

Expressions to the benchmark function.

x

Object of class "benchmark" to print.

times

Number of time to measure execution time of the expression.

envir

Environment to evaluate the expressions.

order

An integer vector to execute the epxressions with this order, otherwise the execution order is random.

Details

For measuring time we have used C++'s new library "chrono".

Value

The execution time for each expression.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis papadakm95@gmail.com.

See Also

Quantile,trim.mean

Examples


benchmark(x <- matrix(runif(10*10),10,10),times=10)


Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.