Skip to content

Commit e905366

Browse files
authored
Merge pull request #91 from alyst/fix_bench
Update benchmarking scripts
2 parents dbd29bf + da371e1 commit e905366

File tree

10 files changed

+414
-345
lines changed

10 files changed

+414
-345
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ BlackBoxOptim.jl
55
[![Coverage Status](https://coveralls.io/repos/robertfeldt/BlackBoxOptim.jl/badge.png?branch=master)](https://coveralls.io/r/robertfeldt/BlackBoxOptim.jl?branch=master)
66
[![BlackBoxOptim](http://pkg.julialang.org/badges/BlackBoxOptim_0.6.svg)](http://pkg.julialang.org/?pkg=BlackBoxOptim)
77
[![BlackBoxOptim](http://pkg.julialang.org/badges/BlackBoxOptim_0.7.svg)](http://pkg.julialang.org/?pkg=BlackBoxOptim)
8+
[![BlackBoxOptim](http://pkg.julialang.org/badges/BlackBoxOptim_1.0.svg)](http://pkg.julialang.org/?pkg=BlackBoxOptim)
89

910
`BlackBoxOptim` is a global optimization package for Julia (http://julialang.org/). It supports both multi- and single-objective optimization problems and is focused on (meta-)heuristic/stochastic algorithms (DE, NES etc) that do NOT require the function being optimized to be differentiable. This is in contrast to more traditional, deterministic algorithms that are often based on gradients/differentiability. It also supports parallel evaluation to speed up optimization for functions that are slow to evaluate.
1011

Rakefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TestDir = "test"
44
# General parameters that the user can set from the command line.
55
Julia = "julia"
66
Julia06 = "julia06"
7-
Julia07 = "julia07"
7+
Julia07 = "julia"
88
MinReps = (ENV["minreps"] || 30).to_i
99
MaxReps = (ENV["maxreps"] || 1000).to_i
1010
MaxRepTime = (ENV["maxreptime"] || 1.0).to_f
@@ -23,7 +23,7 @@ task :atest do
2323
end
2424

2525
Command06 = "#{Julia06} --color=yes -L src/BlackBoxOptim.jl"
26-
Command07 = "#{Julia07} --depwarn=no --color=yes -L src/BlackBoxOptim.jl"
26+
Command07 = "#{Julia07} --depwarn=no --color=yes"
2727
Command = Command06
2828

2929
desc "Run normal (fast) tests"
@@ -117,6 +117,16 @@ end
117117
desc "Benchmark (against latest, saved set of benchmark runs)"
118118
task :bench do
119119
cd("./examples/benchmarking")
120-
sh("julia runcompare.jl 10")
120+
sh("#{Command} runcompare.jl examples/benchmarking 10")
121121
cd("../..")
122122
end
123+
124+
desc "Benchmark on 0.7 (against the latest benchmark reference)"
125+
task :bench07 do
126+
sh("#{Command07} ./examples/benchmarking/runcompare.jl examples/benchmarking 10")
127+
end
128+
129+
desc "Generate benchmark reference"
130+
task :benchref07 do
131+
sh("#{Command07} ./examples/benchmarking/runupdate.jl examples/benchmarking 10")
132+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# activates the Julia environment associated with the working folder
2+
using Pkg
3+
Pkg.activate(".")

0 commit comments

Comments
 (0)