1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-08-25 03:16:55 +02:00
blas-benchmarks/benchmark-sample.R
Andrzej Wójtowicz e0c075fcea Added print to benchmark sample;
Updated results R markdown for next host and gpu
2016-05-29 17:45:39 +02:00

16 lines
181 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)
}
print(benchmark(f(), replications=100))