View source: R/benchmark_matrix_calculations.R
bm_matrix_cal_manip | R Documentation |
A collection of matrix benchmark functions aimed at assessing the calculation speed.
Creation, transp., deformation of a 2500x2500 matrix.
2500x2500 normal distributed random matrix ^1000.
Sorting of 7,000,000 random values.
2500x2500 cross-product matrix (b = a' * a)
Linear regr. over a 3000x3000 matrix.
These benchmarks have been developed by many authors.
See http://r.research.att.com/benchmarks/R-benchmark-25.R
for a complete history. The function benchmark_matrix_cal()
runs
the five bm
functions.
bm_matrix_cal_manip(runs = 3, verbose = TRUE) bm_matrix_cal_power(runs = 3, verbose = TRUE) bm_matrix_cal_sort(runs = 3, verbose = TRUE) bm_matrix_cal_cross_product(runs = 3, verbose = TRUE) bm_matrix_cal_lm(runs = 3, verbose = TRUE) benchmark_matrix_cal(runs = 3, verbose = TRUE, cores = 0L)
runs |
Number of times to run the test. Default 3. |
verbose |
Default TRUE. |
cores |
Default 0 (serial). When cores > 0, the benchmark is run in parallel. |
http://r.research.att.com/benchmarks/R-benchmark-25.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.