-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from sumiya11/update-benchmarks
Refactor benchmarks & increment version to 0.3.3
- Loading branch information
Showing
38 changed files
with
1,216 additions
and
943 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Citation | ||
If you use Groebner.jl, please [cite this paper](https://arxiv.org/abs/2304.06935) | ||
@misc{groebnerjl2023, | ||
title = {Groebner.jl: A package for Gr\"obner bases computations in Julia}, | ||
author = {Alexander Demin and Shashi Gowda}, | ||
year = {2023}, | ||
eprint = {2304.06935}, | ||
url = {https://arxiv.org/abs/2304.06935} | ||
} |
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 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 |
---|---|---|
|
@@ -68,3 +68,17 @@ This library is maintained by Alexander Demin (<[email protected]>) | |
We would like to acknowledge Jérémy Berthomieu, Christian Eder and Mohab Safey El Din as this Library is inspired by their work ["msolve: A Library for Solving Polynomial Systems"](https://arxiv.org/abs/2104.03572). We are also grateful to Max-Planck-Institut für Informatik for assistance in producing benchmarks. | ||
|
||
Special thanks goes to Vladimir Kuznetsov for providing the sources of his F4 implementation. | ||
|
||
## Citing Groebner.jl | ||
|
||
If you find Groebner.jl useful in your work, you can cite the following preprint | ||
|
||
``` | ||
@misc{groebnerjl2023, | ||
title = {Groebner.jl: A package for Gr\"obner bases computations in Julia}, | ||
author = {Alexander Demin and Shashi Gowda}, | ||
year = {2023}, | ||
eprint = {2304.06935}, | ||
url = {https://arxiv.org/abs/2304.06935} | ||
} | ||
``` |
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,43 @@ | ||
|
||
The directory is used to run benchmarks for `Groebner.jl`, `Singular`, and `Maple` for the arxiv preprint https://arxiv.org/abs/2304.06935. | ||
|
||
*running OpenF4 benchmarks is not possible at the moment, work in progress* | ||
|
||
#### For `Groebner.jl` and `Singular` benchmarks, you will need: | ||
|
||
1. A Julia client v1.6+ installed. See the official installation guide at https://julialang.org/downloads/platform/ | ||
|
||
|
||
#### To run `Groebner.jl` benchmarks | ||
|
||
1. Execute the following command in your favorite terminal from this directory | ||
|
||
``` | ||
> julia run_groebner.jl | ||
``` | ||
|
||
#### To run `Singular` benchmarks | ||
|
||
1. Execute the following command in your favorite terminal from this directory | ||
|
||
``` | ||
> julia run_singular.jl | ||
``` | ||
|
||
*Running Singular benchmarks on Windows platforms is currently not possible.* | ||
|
||
--- | ||
|
||
#### For `Maple` benchmarks, you will need: | ||
|
||
1. A Maple client v2021+ installed. See the official installation guide at https://www.maplesoft.com/support/install/2021/Maple/Install.html | ||
|
||
|
||
#### To run `Maple` benchmarks | ||
|
||
1. Execute the following command in your favorite terminal from this directory | ||
|
||
``` | ||
> maple run_maple.mpl | ||
``` | ||
|
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 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,52 @@ | ||
using Groebner | ||
using AbstractAlgebra | ||
|
||
include((@__DIR__)*"/benchmark_systems.jl") | ||
|
||
header = """ | ||
with(Groebner): | ||
with(PolynomialIdeals): | ||
""" | ||
|
||
template = """ | ||
J := PolynomialIdeal({(1)}, charactesistic=(3)): | ||
print("Running (4)"); | ||
st := time[real](): | ||
Groebner[Basis](J, tdeg((2)), method=direct): | ||
print("(4): ", time[real]() - st); | ||
""" | ||
|
||
function export_maple(io, name, system) | ||
global ground | ||
R = parent(first(system)) | ||
t1 = join(map(string, system), ", ") | ||
t2 = join(map(string, gens(R)), ", ") | ||
t3 = string(characteristic(base_ring(R))) | ||
t4 = name | ||
s = replace(template, "(1)"=>t1,"(2)"=>t2,"(3)"=>t3,"(4)"=>t4) | ||
println(io, s) | ||
end | ||
|
||
function generate(flag) | ||
if flag | ||
ground = GF(2^31-1) | ||
systems = benchmark_systems_ff(ground) | ||
else | ||
ground = QQ | ||
systems = benchmark_systems_qq(ground) | ||
end | ||
|
||
io = open((@__DIR__)*"/generated_maple_$(flag ? "ff" : "qq").mpl", "w") | ||
|
||
println(io, header) | ||
|
||
for (name, system) in systems | ||
export_maple(io, name, system) | ||
end | ||
|
||
close(io) | ||
end | ||
|
||
generate(true) | ||
generate(false) |
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
Oops, something went wrong.
4e93ca5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
4e93ca5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/81717
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: