Skip to content

Commit

Permalink
Add benchmarks for sparse unary minus. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha0 authored and jrevels committed Dec 15, 2016
1 parent 38fe064 commit 3da5fd6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sparse/SparseBenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,18 @@ for b in values(g)
b.params.time_tolerance = 0.3
end

##############
# arithmetic #
##############

g = addgroup!(SUITE, "arithmetic")

# unary minus, julialang repo issue #19503 / fix #19530
g["unary minus", size(small_sqr)] = @benchmarkable -$small_sqr
g["unary minus", size(large_sqr)] = @benchmarkable -$large_sqr

for b in values(g)
b.params.time_tolerance = 0.3
end

end # module

0 comments on commit 3da5fd6

Please sign in to comment.