-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bdc9b7
commit 535e6dd
Showing
7 changed files
with
61 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ Manifest.toml | |
*.sublime-workspace | ||
*.bat | ||
*.sublime-project | ||
*.json | ||
*.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name = "Xpress" | ||
uuid = "9e70acf3-d6c9-5be6-b5bd-4e2c73e3e054" | ||
authors = ["Joaquim Dias Garcia <[email protected]>, Dheepak Krishnamurthy <[email protected]>, Jose Daniel Lara <[email protected]>"] | ||
url = "https://github.com/jump-dev/Xpress.jl" | ||
authors = [ | ||
"Joaquim Dias Garcia <[email protected]>, Dheepak Krishnamurthy <[email protected]>, Jose Daniel Lara <[email protected]>"] | ||
version = "0.12.3" | ||
|
||
[deps] | ||
|
@@ -16,8 +15,8 @@ MathOptInterface = "~0.9.20" | |
julia = "1" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test", "Random"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Xpress | ||
|
||
function print_help() | ||
println(""" | ||
Usage | ||
benchmark.jl [arg] [name] | ||
[arg] | ||
--new Begin a new benchmark comparison | ||
--compare Run another benchmark and compare to existing | ||
[name] A name for the benchmark test | ||
Examples | ||
git checkout master | ||
julia benchmark.jl --new master | ||
git checkout approach_1 | ||
julia benchmark.jl --new approach_1 | ||
git checkout approach_2 | ||
julia benchmark.jl --compare master | ||
julia benchmark.jl --compare approach_1 | ||
""") | ||
end | ||
|
||
if length(ARGS) != 2 | ||
print_help() | ||
else | ||
const Benchmarks = Xpress.MOI.Benchmarks | ||
const suite = Benchmarks.suite(() -> Xpress.Optimizer()) | ||
if ARGS[1] == "--new" | ||
Benchmarks.create_baseline( | ||
suite, ARGS[2]; directory = @__DIR__, verbose = true | ||
) | ||
elseif ARGS[1] == "--compare" | ||
Benchmarks.compare_against_baseline( | ||
suite, ARGS[2]; directory = @__DIR__, verbose = true | ||
) | ||
else | ||
print_help() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters