Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks for sparse unary minus #45

Merged
merged 1 commit into from
Dec 15, 2016
Merged

Add benchmarks for sparse unary minus #45

merged 1 commit into from
Dec 15, 2016

Conversation

Sacha0
Copy link
Contributor

@Sacha0 Sacha0 commented Dec 13, 2016

This pull request adds benchmarks for sparse unary minus as discussed in JuliaLang/julia#19530. Apologies in advance for inevitable BaseBenchmarks.jl-newbie errors. Thanks and best!

Copy link
Member

@jrevels jrevels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, after making the minor changes I suggested it should be good to go!

# unary operations #
####################

g = addgroup!(SUITE, "unary ops")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the linear algebra benchmarks have an "arithmetic" group, can we replace "unary ops" with "arithmetic" to make things consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arithmetic is much better. Thanks!


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra group key here isn't necessary, e.g. g["unary ops", "unary minus", size(small_sqr)] can be changed to g["unary minus", size(small_sqr)]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on push. Thanks!

@jrevels
Copy link
Member

jrevels commented Dec 15, 2016

Awesome, thanks again! I'll let you know once these benchmarks are available on Nanosoldier (they still need to undergo a BenchmarkTools.tune! on Nanosoldier's hardware before they'll be available).

@jrevels jrevels merged commit 3da5fd6 into JuliaCI:master Dec 15, 2016
@Sacha0 Sacha0 deleted the spunaryminus branch December 16, 2016 20:19
@Sacha0
Copy link
Contributor Author

Sacha0 commented Dec 16, 2016

Cheers, thanks @jrevels!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants