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

Benchmark suite #51

Open
jlapeyre opened this issue Dec 5, 2018 · 0 comments
Open

Benchmark suite #51

jlapeyre opened this issue Dec 5, 2018 · 0 comments

Comments

@jlapeyre
Copy link
Contributor

jlapeyre commented Dec 5, 2018

What about adding benchmarks to the repo ? Here is the beginning of a benchmark suite.

I was unable to find any convenient tools for formatting and organizing reports. Whats more, after poking around in a few packages, it seems that these things tend to fall behind the rest of the code.

But, it helps me keep track of what has been done. For instance, here are the relevant benchmarks before the pending PR:

julia> println.(result["Eye"]["identities"]);
Pair{Any,Any}(("inv", "Int64", "n=1000"), Trial(960.983 ns))
Pair{Any,Any}(("inv", "Float64", "n=10"), Trial(53.983 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Int64", "n=10"), Trial(55.983 ns))
Pair{Any,Any}(("permutedims", "Float64", "n=1000"), Trial(6.776 ms))
Pair{Any,Any}(("inv", "Int64", "n=10"), Trial(52.983 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Float64", "n=10"), Trial(60.983 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Float64", "n=1000"), Trial(718.983 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Float64", "n=10"), Trial(54.983 ns))
Pair{Any,Any}(("inv", "Float64", "n=1000"), Trial(970.983 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Int64", "n=10"), Trial(55.983 ns))
Pair{Any,Any}(("permutedims", "Int64", "n=10"), Trial(1.538 μs))
Pair{Any,Any}(("permutedims", "Float64", "n=10"), Trial(1.543 μs))
Pair{Any,Any}(("permutedims", "Int64", "n=1000"), Trial(6.678 ms))
Pair{Any,Any}(("LinearAlgebra.triu", "Int64", "n=1000"), Trial(619.983 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Float64", "n=1000"), Trial(679.983 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Int64", "n=1000"), Trial(705.983 ns))

Here are the same benchmarks after the PR:

julia> println.(result["Eye"]["identities"]);
Pair{Any,Any}(("inv", "Int64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("inv", "Float64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Int64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("permutedims", "Float64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("inv", "Int64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Float64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Float64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Float64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("inv", "Float64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Int64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("permutedims", "Int64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("permutedims", "Float64", "n=10"), Trial(0.001 ns))
Pair{Any,Any}(("permutedims", "Int64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Int64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.triu", "Float64", "n=1000"), Trial(0.001 ns))
Pair{Any,Any}(("LinearAlgebra.tril", "Int64", "n=1000"), Trial(0.001 ns))
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

No branches or pull requests

1 participant