1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-11-03 19:45:27 +01:00
blas-benchmarks/benchmark-sample.R
Andrzej Wójtowicz eb01728fb6 added saving host info;
added saving results in rds files;
renamed benchmark scripts
2016-05-19 19:11:33 +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)