MilesCranmer commited on
Commit
12bc552
1 Parent(s): eac89da

Benchmark median time

Browse files
Files changed (1) hide show
  1. benchmark.jl +6 -10
benchmark.jl CHANGED
@@ -1,16 +1,12 @@
1
  include("paralleleureqa.jl")
2
- fullRun(1,
3
- npop=100,
4
- annealing=true,
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
- end
 
 
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))")