comparison benchmark/benchmark_stencil_implementations.jl @ 1543:a064a8bd413f bugfix/sbp_operators/stencil_return_type

Add benchmark script
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 12 Apr 2024 07:49:19 +0200
parents
children
comparison
equal deleted inserted replaced
1538:85c4937afd50 1543:a064a8bd413f
1 include("benchmark_utils.jl")
2
3 baseline = run_benchmark("baseline", retune=true)
4 mapreduce = run_benchmark("mapreduce")
5 multiplication = run_benchmark("multiplication")
6 promote_op = run_benchmark("promote_op")
7 return_type = run_benchmark("return_type")
8 sum = run_benchmark("sum")
9 # TODO: Change to rev-ids
10
11 f = minimum
12
13 judge_mapreduce = PkgBenchmark.judge(mapreduce, baseline, f)
14 judge_multiplication = PkgBenchmark.judge(multiplication, baseline, f)
15 judge_promote_op = PkgBenchmark.judge(promote_op, baseline, f)
16 judge_return_type = PkgBenchmark.judge(return_type, baseline, f)
17 judge_sum = PkgBenchmark.judge(sum, baseline, f)
18
19 write_result_html(judge_mapreduce, name="mapreduce")
20 write_result_html(judge_multiplication, name="multiplication")
21 write_result_html(judge_promote_op, name="promote_op")
22 write_result_html(judge_return_type, name="return_type")
23 write_result_html(judge_sum, name="sum")