Skip to content

Commit

Permalink
Use const for suite (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Feb 19, 2020
1 parent ff2493f commit c3686c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/bench_qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using BenchmarkTools
using LinearAlgebra
using StaticArrays

suite = BenchmarkGroup()
const suite = BenchmarkGroup()

for K = 1:22
a = rand(SMatrix{K,K,Float64,K*K})
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# to the top-level group `SUITE` with the `$name` extracted from the file name.

using BenchmarkTools
SUITE = BenchmarkGroup()
const SUITE = BenchmarkGroup()
for file in sort(readdir(@__DIR__))
if startswith(file, "bench_") && endswith(file, ".jl")
SUITE[chop(file, head = length("bench_"), tail = length(".jl"))] =
Expand Down

0 comments on commit c3686c4

Please sign in to comment.