Benchmark - Measure time | R Documentation |
Benchmark - Measure time.
benchmark(...,times,envir=parent.frame(),order=NULL)
## S3 method for class 'benchmark'
print(x,...)
... |
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. |
For measuring time we have used C++'s new library "chrono".
The execution time for each expression.
Manos Papadakis
R implementation and documentation: Manos Papadakis papadakm95@gmail.com.
Quantile,trim.mean
benchmark(x <- matrix(runif(10*10),10,10),times=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.