Skip to content

Conversation

tkf
Copy link
Contributor

@tkf tkf commented Jan 26, 2020

With this patch, BenchmarkTools now emits progress logging records as specified by ProgressLogging.jl. You can observe progress as progress bars if you set up a progress monitor such as Juno and TerminalLoggers.jl

Note that this patch does not add ProgressLogging.jl or any non-stdlib packages as dependencies.

Example:

Peek 2020-01-25 22-43

using Logging
using TerminalLoggers
using BenchmarkTools

with_logger(TerminalLogger()) do
    suite = BenchmarkGroup()
    for n in [100, 200, 400]
        suite[n] = s1 = BenchmarkGroup()
        for T in [Int, Float64, ComplexF64]
            s1[T] = @benchmarkable rand($T, $n)
        end
    end
    tune!(suite, verbose=true)
    run(suite, verbose=true)
end

... as `_withprogress` makes sure that it's a `UUID`.
@vchuravy vchuravy merged commit 58af704 into JuliaCI:master Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants