mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
better reporting of timings in tests
This commit is contained in:
parent
4431ae7144
commit
de600de0a2
@ -121,15 +121,22 @@ using Groups.KnuthBendix
|
|||||||
u = (a6 * a5)^-1 * b1 * (a6 * a5)
|
u = (a6 * a5)^-1 * b1 * (a6 * a5)
|
||||||
x = (a6 * a5 * a4 * a3 * a2 * u * a1^-1 * a2^-1 * a3^-1 * a4^-1) # yet another auxillary
|
x = (a6 * a5 * a4 * a3 * a2 * u * a1^-1 * a2^-1 * a3^-1 * a4^-1) # yet another auxillary
|
||||||
# x = (a4^-1*a3^-1*a2^-1*a1^-1*u*a2*a3*a4*a5*a6)
|
# x = (a4^-1*a3^-1*a2^-1*a1^-1*u*a2*a3*a4*a5*a6)
|
||||||
@time evaluate(x)
|
|
||||||
b3 = x * a0 * x^-1
|
b3 = x * a0 * x^-1
|
||||||
b3im = @time evaluate(b3)
|
b3im = evaluate(b3)
|
||||||
b3cim = @time let g = b3
|
b3cim = let g = b3
|
||||||
f = Groups.compiled(g)
|
f = Groups.compiled(g)
|
||||||
f(Groups.domain(g))
|
f(Groups.domain(g))
|
||||||
end
|
end
|
||||||
@test b3im == b3cim
|
@test b3im == b3cim
|
||||||
@test a0 * b2 * b1 == a1 * a3 * a5 * b3
|
@test a0 * b2 * b1 == a1 * a3 * a5 * b3
|
||||||
|
|
||||||
|
@time evaluate(x)
|
||||||
|
let g = b3
|
||||||
|
f = Groups.compiled(g)
|
||||||
|
f(Groups.domain(g))
|
||||||
|
@time f(Groups.domain(g))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ using BenchmarkTools
|
|||||||
using Test
|
using Test
|
||||||
|
|
||||||
using Groups
|
using Groups
|
||||||
using Groups.New
|
|
||||||
|
|
||||||
function wl_ball(F; radius::Integer)
|
function wl_ball(F; radius::Integer)
|
||||||
g, state = iterate(F)
|
g, state = iterate(F)
|
||||||
@ -47,7 +46,7 @@ end
|
|||||||
@testset "iteration: SAut(F_n)" begin
|
@testset "iteration: SAut(F_n)" begin
|
||||||
R = 4
|
R = 4
|
||||||
FN = FreeGroup(N)
|
FN = FreeGroup(N)
|
||||||
SAutFN = New.SpecialAutomorphismGroup(FN)
|
SAutFN = SpecialAutomorphismGroup(FN)
|
||||||
|
|
||||||
let G = SAutFN
|
let G = SAutFN
|
||||||
S = unique([gens(G); inv.(gens(G))])
|
S = unique([gens(G); inv.(gens(G))])
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
@test k == a*b^-1
|
@test k == a*b^-1
|
||||||
|
|
||||||
@time k = test_iteration(F3, 1000)
|
@time k = test_iteration(F3, 1000)
|
||||||
|
|
||||||
|
@time test_iteration(F3, 1000)
|
||||||
@test k == (a^2)*c^2*a^-1
|
@test k == (a^2)*c^2*a^-1
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -67,5 +69,4 @@
|
|||||||
test_Group_interface(F3)
|
test_Group_interface(F3)
|
||||||
test_GroupElement_interface(rand(F3, 2)...)
|
test_GroupElement_interface(rand(F3, 2)...)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -11,20 +11,30 @@ include(joinpath(pathof(GroupsCore), "..", "..", "test", "conformance_test.jl"))
|
|||||||
|
|
||||||
@testset "Groups" begin
|
@testset "Groups" begin
|
||||||
|
|
||||||
include("free_groups.jl")
|
_, t = @timed include("free_groups.jl")
|
||||||
include("fp_groups.jl")
|
@info "free_groups.jl took $(round(t, digits=2))s"
|
||||||
|
_, t = @timed include("fp_groups.jl")
|
||||||
|
@info "fp_groups.jl took $(round(t, digits=2))s"
|
||||||
|
|
||||||
include("matrix_groups.jl")
|
_, t = @timed include("matrix_groups.jl")
|
||||||
include("AutFn.jl")
|
@info "matrix_groups.jl took $(round(t, digits=2))s"
|
||||||
|
_, t = @timed include("AutFn.jl")
|
||||||
|
@info "AutFn.jl took $(round(t, digits=2))s"
|
||||||
|
|
||||||
include("homomorphisms.jl")
|
_, t = @timed include("homomorphisms.jl")
|
||||||
|
@info "homomorphisms.jl took $(round(t, digits=2))s"
|
||||||
|
|
||||||
include("AutSigma_41.jl")
|
if haskey(ENV, "CI")
|
||||||
include("AutSigma3.jl")
|
_, t = @timed include("AutSigma_41.jl")
|
||||||
|
@info "AutSigma_41 took $(round(t, digits=2))s"
|
||||||
|
_, t = @timed include("AutSigma3.jl")
|
||||||
|
@info "AutSigma3 took $(round(t, digits=2))s"
|
||||||
|
end
|
||||||
|
|
||||||
include("group_constructions.jl")
|
_, t = @timed include("group_constructions.jl")
|
||||||
|
@info "Constructions took $(round(t, digits=2))s"
|
||||||
# if !haskey(ENV, "CI")
|
end
|
||||||
# include("benchmarks.jl")
|
|
||||||
# end
|
if !haskey(ENV, "CI")
|
||||||
|
include("benchmarks.jl")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user