benchmark: Benchmark - Measure time

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/benchmark.R

Description

Lower/upper triangular matrix.

Usage

1
2
3
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

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

Rfast2 documentation built on March 22, 2021, 9:08 a.m.