Skip to content

Commit

Permalink
uncomment all elixirs again
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Oct 29, 2024
1 parent ab2d2b0 commit 9dfcc7f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
26 changes: 13 additions & 13 deletions benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
using Pkg
Pkg.activate(@__DIR__)
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))

using BenchmarkTools
using DispersiveShallowWater

const SUITE = BenchmarkGroup()

elixirs = [joinpath(examples_dir(), "bbm_1d", "bbm_1d_basic.jl")]#,
# joinpath(examples_dir(), "bbm_1d", "bbm_1d_fourier.jl"),
# joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_dg.jl"),
# joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_relaxation.jl"),
# joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_upwind_relaxation.jl"),
# joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_basic_reflecting.jl"),
# joinpath(examples_dir(), "hyperbolic_serre_green_naghdi_1d",
# "hyperbolic_serre_green_naghdi_dingemans.jl"),
# joinpath(examples_dir(), "serre_green_naghdi_1d",
# "serre_green_naghdi_well_balanced.jl"),
# joinpath(examples_dir(), "svaerd_kalisch_1d",
# "svaerd_kalisch_1d_dingemans_relaxation.jl")]
elixirs = [joinpath(examples_dir(), "bbm_1d", "bbm_1d_basic.jl"),
joinpath(examples_dir(), "bbm_1d", "bbm_1d_fourier.jl"),
joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_dg.jl"),
joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_relaxation.jl"),
joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_upwind_relaxation.jl"),
joinpath(examples_dir(), "bbm_bbm_1d", "bbm_bbm_1d_basic_reflecting.jl"),
joinpath(examples_dir(), "hyperbolic_serre_green_naghdi_1d",
"hyperbolic_serre_green_naghdi_dingemans.jl"),
joinpath(examples_dir(), "serre_green_naghdi_1d",
"serre_green_naghdi_well_balanced.jl"),
joinpath(examples_dir(), "svaerd_kalisch_1d",
"svaerd_kalisch_1d_dingemans_relaxation.jl")]

for elixir in elixirs
benchname = joinpath(basename(dirname(elixir)), basename(elixir))
# use include instead of trixi_include(elixir, tspan = (0.0, 1e-10)) because AirspeedVelocity.jl has namespace issues
include(elixir)
SUITE[benchname] = @benchmarkable DispersiveShallowWater.rhs!($(similar(sol.u[end])),
$(copy(sol.u[end])),
Expand Down
6 changes: 6 additions & 0 deletions benchmark/run_benckmarks.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using Pkg

Check warning on line 1 in benchmark/run_benckmarks.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"benckmarks" should be "benchmarks".
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))

include("benchmarks.jl")
tune!(SUITE)
result = run(SUITE)

0 comments on commit 9dfcc7f

Please sign in to comment.