tkf / BenchmarkCI.jl
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
test/runtests.jl has changed.

@@ -52,6 +52,12 @@
Loading
52 52
    end
53 53
end
54 54
55 +
function format_period(seconds::Real)
56 +
    seconds < 60 && return string(floor(Int, seconds), " seconds")
57 +
    minutes = floor(Int, seconds / 60)
58 +
    return string(minutes, " minutes ", floor(Int, seconds - 60 * minutes), " seconds")
59 +
end
60 +
55 61
judge(; target = nothing, baseline = "origin/master", kwargs...) =
56 62
    judge(target, baseline; kwargs...)
57 63
@@ -92,7 +98,7 @@
Loading
92 98
    end
93 99
94 100
    try
95 -
        group_target = PkgBenchmark.benchmarkpkg(
101 +
        time_target = @elapsed group_target = PkgBenchmark.benchmarkpkg(
96 102
            pkg,
97 103
            target,
98 104
            progressoptions = progressoptions,
@@ -100,13 +106,18 @@
Loading
100 106
            script = script_wrapper,
101 107
        )
102 108
        @debug("`git status`", output = Text(read(`git status`, String)))
103 -
        group_baseline = PkgBenchmark.benchmarkpkg(
109 +
        time_baseline = @elapsed group_baseline = PkgBenchmark.benchmarkpkg(
104 110
            pkg,
105 111
            baseline,
106 112
            progressoptions = progressoptions,
107 113
            resultfile = joinpath(workspace, "result-baseline.json"),
108 114
            script = script_wrapper,
109 115
        )
116 +
        @info """
117 +
        Finish running benchmarks.
118 +
        * Target: $(format_period(time_target))
119 +
        * Baseline: $(format_period(time_baseline))
120 +
        """
110 121
        judgement = PkgBenchmark.judge(group_target, group_baseline)
111 122
        if is_in_ci()
112 123
            display(judgement)
Files Coverage
src 78.46%
Project Totals (2 files) 78.46%
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading