Skip to content

Commit

Permalink
Merge pull request #2899 from CliMA/ck/results_before_tests
Browse files Browse the repository at this point in the history
Print benchmark results before tests
  • Loading branch information
charleskawczynski authored Apr 12, 2024
2 parents c2e8bae + 9ec9269 commit e9aba77
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions perf/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ trials["step!"] = get_trial(SciMLBase.step!, (integrator, ), "step!");

using Test
using ClimaComms

table_summary = OrderedCollections.OrderedDict()
for k in keys(trials)
table_summary[k] = get_summary(trials[k])
end
tabulate_summary(table_summary)

are_boundschecks_forced = Base.JLOptions().check_bounds == 1
# Benchmark allocation tests
@testset "Benchmark allocation tests" begin
Expand All @@ -64,12 +71,6 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
end
end

table_summary = OrderedCollections.OrderedDict()
for k in keys(trials)
table_summary[k] = get_summary(trials[k])
end
tabulate_summary(table_summary)

if get(ENV, "BUILDKITE", "") == "true"
# Export table_summary
import JSON
Expand Down

0 comments on commit e9aba77

Please sign in to comment.