-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@benchmarkset breaks on ^C #279
Labels
Comments
Wow that is a nasty find. Does it happen when you interrupt a BenchmarkGroup being run? |
This seems to be fine: julia> suite = BenchmarkGroup()
0-element BenchmarkTools.BenchmarkGroup:
tags: []
julia> for k in 1:20
suite["case $k"] = @benchmarkable rand($k, $k)
end
julia> run(suite)
^CERROR: InterruptException:
Stacktrace:
[1] gc (repeats 2 times)
@ ./gcutils.jl:98 [inlined]
[2] gcscrub
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:4 [inlined]
[3] _run(b::BenchmarkTools.Benchmark, p::BenchmarkTools.Parameters; verbose::Bool, pad::String, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ BenchmarkTools ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:95
[4] #invokelatest#2
@ ./essentials.jl:818 [inlined]
[5] invokelatest
@ ./essentials.jl:813 [inlined]
[6] #run_result#45
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:34 [inlined]
[7] run_result
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:34 [inlined]
[8] run(b::BenchmarkTools.Benchmark, p::BenchmarkTools.Parameters; progressid::Base.UUID, nleaves::Int64, ndone::Int64, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:verbose, :pad), Tuple{Bool, String}}})
@ BenchmarkTools ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:117
[9] run (repeats 2 times)
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:117 [inlined]
[10] macro expansion
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:135 [inlined]
[11] macro expansion
@ ./timing.jl:393 [inlined]
[12] (::BenchmarkTools.var"#51#52"{Bool, String, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, BenchmarkGroup, Tuple{}})(progressid::Base.UUID, nleaves::Int64, ndone::Int64)
@ BenchmarkTools ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:134
[13] _withprogress(f::BenchmarkTools.var"#51#52"{Bool, String, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, BenchmarkGroup, Tuple{}}, name::String, group::BenchmarkGroup; progressid::Nothing, nleaves::Float64, ndone::Float64, #unused#::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ BenchmarkTools ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:79
[14] _withprogress
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:63 [inlined]
[15] #run#50
@ ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:125 [inlined]
[16] run(::BenchmarkGroup)
@ BenchmarkTools ~/.julia/packages/BenchmarkTools/0owsb/src/execution.jl:125
julia> run(suite)
20-element BenchmarkTools.BenchmarkGroup:
tags: []
"case 6" => Trial(41.000 ns)
"case 10" => Trial(83.000 ns)
"case 7" => Trial(41.000 ns)
"case 15" => Trial(125.000 ns)
"case 14" => Trial(125.000 ns)
"case 11" => Trial(83.000 ns)
"case 17" => Trial(208.000 ns)
"case 19" => Trial(250.000 ns)
"case 13" => Trial(83.000 ns)
"case 1" => Trial(0.001 ns)
⋮ |
Any clue where that could come from? |
Nope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I interrupt
@benchmarksuite
it is permanently broken:The text was updated successfully, but these errors were encountered: