Skip to content
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

Add progress logging based on ProgressLogging.jl spec #153

Merged
merged 2 commits into from
Feb 23, 2020

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.

None yet

2 participants