From 0085106aa16a4a848fa1c006cea011be49ef814f Mon Sep 17 00:00:00 2001 From: Thomas Christensen Date: Mon, 21 Feb 2022 16:56:08 -0500 Subject: [PATCH] benchmark on latest release and reduce benchmarks of very large matrices --- .github/workflows/benchmark.yml | 2 +- benchmark/bench_mat_mul.jl | 4 ++-- benchmark/bench_qr.jl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c267c2ea..838d6245 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@latest with: - version: 1.6 + version: 1 - name: Install dependencies run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"' - name: Run benchmarks diff --git a/benchmark/bench_mat_mul.jl b/benchmark/bench_mat_mul.jl index 97e00523..382dcd1a 100644 --- a/benchmark/bench_mat_mul.jl +++ b/benchmark/bench_mat_mul.jl @@ -26,7 +26,7 @@ mul_wrappers_reduced = [ (m -> Transpose(m), "transpo"), (m -> Diagonal(m), "diag ")] -for N in [2, 4, 8, 10, 16] +for N in [2, 4, 8, 10, 12] matvecstr = @sprintf("mat-vec %2d", N) matmatstr = @sprintf("mat-mat %2d", N) @@ -205,7 +205,7 @@ function pick_best(results, mul_wrappers, size_iter; tol = 1.2) end function run_1() - return full_benchmark(mul_wrappers_reduced, [2, 3, 4, 5, 8, 9, 14, 16]) + return full_benchmark(mul_wrappers_reduced, [2, 3, 4, 5, 8, 9, 12]) end end #module diff --git a/benchmark/bench_qr.jl b/benchmark/bench_qr.jl index 9475f78d..fa90ad3b 100644 --- a/benchmark/bench_qr.jl +++ b/benchmark/bench_qr.jl @@ -6,7 +6,7 @@ using StaticArrays const suite = BenchmarkGroup() -for K = 1:22 +for K = [2, 3, 4, 8, 10, 12] a = rand(SMatrix{K,K,Float64,K*K}) m = Matrix(a) s = suite["S=$K"] = BenchmarkGroup()