1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-12-22 16:45:28 +01:00
blas-benchmarks/sample-benchmark.R
Andrzej Wójtowicz fd5e9d734f added checking multithreading by ld preload for all cpu libraries;
externalized checkpoint to bash script;
added functions for each library;
added info about current process
2016-05-01 22:36:35 +02:00

16 lines
174 B
R

library(rbenchmark)
f = function()
{
set.seed (1)
m <- 1000
n <- 500
A <- matrix (runif (m*n),m,n)
# Matrix multiply
B <- crossprod(A)
}
benchmark(f(), replications=100)