Spaces:
Sleeping
Sleeping
Commit
·
12bc552
1
Parent(s):
eac89da
Benchmark median time
Browse files- benchmark.jl +6 -10
benchmark.jl
CHANGED
|
@@ -1,16 +1,12 @@
|
|
| 1 |
include("paralleleureqa.jl")
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
ncyclesperiteration=1000,
|
| 6 |
-
fractionReplaced=0.1f0,
|
| 7 |
-
verbosity=0)
|
| 8 |
-
@time for i=1:5
|
| 9 |
-
fullRun(3,
|
| 10 |
npop=100,
|
| 11 |
annealing=true,
|
| 12 |
ncyclesperiteration=100,
|
| 13 |
fractionReplaced=0.1f0,
|
| 14 |
verbosity=0
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
| 1 |
include("paralleleureqa.jl")
|
| 2 |
+
using BenchmarkTools
|
| 3 |
+
|
| 4 |
+
t = @benchmark(fullRun(3,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
npop=100,
|
| 6 |
annealing=true,
|
| 7 |
ncyclesperiteration=100,
|
| 8 |
fractionReplaced=0.1f0,
|
| 9 |
verbosity=0
|
| 10 |
+
), evals=5)
|
| 11 |
+
|
| 12 |
+
println("The median time is $(median(t))")
|