Skip to content

Commit

Permalink
Modify benchmarking code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjan Anantharaman committed Apr 14, 2016
1 parent 381ea8d commit 3f36188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arrayfire/bench/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function benchmark()
warmup()
info("Warmup done!")

a = rand(1000, 1000)
a = rand(2000, 2000)
ad = AFArray(a)

#Matmul
Expand Down Expand Up @@ -46,8 +46,8 @@ function benchmark()

#Rand
info("Rand")
t1 = @elapsed rand(1000, 1000)
t2 = @elapsed rand(AFArray{Float64}, 1000, 1000)
t1 = @elapsed rand(5000, 5000)
t2 = @elapsed rand(AFArray{Float64}, 5000, 5000)
println("Time (CPU): $t1")
println("Time (GPU): $t2")

Expand Down

0 comments on commit 3f36188

Please sign in to comment.