bm_matrix_cal_manip: Matrix calculation benchmarks

View source: R/benchmark_matrix_calculations.R

bm_matrix_cal_manipR Documentation

Matrix calculation benchmarks

Description

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.

Usage

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)

Arguments

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.

References

http://r.research.att.com/benchmarks/R-benchmark-25.R


benchmarkme documentation built on June 12, 2022, 5:06 p.m.