Skip to content

Commit e9aba77

Browse files
Merge pull request #2899 from CliMA/ck/results_before_tests
Print benchmark results before tests
2 parents c2e8bae + 9ec9269 commit e9aba77

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

perf/benchmark.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ trials["step!"] = get_trial(SciMLBase.step!, (integrator, ), "step!");
4343

4444
using Test
4545
using ClimaComms
46+
47+
table_summary = OrderedCollections.OrderedDict()
48+
for k in keys(trials)
49+
table_summary[k] = get_summary(trials[k])
50+
end
51+
tabulate_summary(table_summary)
52+
4653
are_boundschecks_forced = Base.JLOptions().check_bounds == 1
4754
# Benchmark allocation tests
4855
@testset "Benchmark allocation tests" begin
@@ -64,12 +71,6 @@ are_boundschecks_forced = Base.JLOptions().check_bounds == 1
6471
end
6572
end
6673

67-
table_summary = OrderedCollections.OrderedDict()
68-
for k in keys(trials)
69-
table_summary[k] = get_summary(trials[k])
70-
end
71-
tabulate_summary(table_summary)
72-
7374
if get(ENV, "BUILDKITE", "") == "true"
7475
# Export table_summary
7576
import JSON

0 commit comments

Comments
 (0)