mirror of
https://github.com/andre-wojtowicz/blas-benchmarks
synced 2024-12-23 03:35:29 +01:00
added sample benchmark
This commit is contained in:
parent
faf99ebc92
commit
c3480c7b84
16
sample-benchmark.R
Normal file
16
sample-benchmark.R
Normal file
@ -0,0 +1,16 @@
|
||||
library(checkpoint)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user