-
Notifications
You must be signed in to change notification settings - Fork 70
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
Update benchmarks.jl #156
Update benchmarks.jl #156
Conversation
update benchmarks to use BenchmarkGroup() syntax
Codecov Report
@@ Coverage Diff @@
## master #156 +/- ##
==========================================
+ Coverage 92.24% 92.29% +0.04%
==========================================
Files 21 23 +2
Lines 1006 1064 +58
==========================================
+ Hits 928 982 +54
- Misses 78 82 +4
Continue to review full report at Codecov.
|
Thanks for the contribution! |
You're welcome. I only made the script work again, since the macros julia> using BenchmarkTools, PkgBenchmark
julia> @bench
ERROR: UndefVarError: @bench not defined
julia> @benchgroup
ERROR: UndefVarError: @benchgroup not defined
julia> Pkg.installed("BenchmarkTools"), Pkg.installed("PkgBenchmark")
(v"0.3.1", v"0.1.1")
julia> @benchmarkable
ERROR: ArgumentError: tuple must be non-empty
julia> BenchmarkGroup
BenchmarkTools.BenchmarkGroup |
Great, thanks. I'm still getting the following error, though:
|
Huh, and you have at least these versions? julia> Pkg.installed("BenchmarkTools"), Pkg.installed("PkgBenchmark")
(v"0.3.1", v"0.1.1") this is what i get: julia> using PkgBenchmark
julia> benchmarkpkg("IntervalArithmetic")
PkgBenchmark: Running benchmarks...
PkgBenchmark: using benchmark tuning data in /Users/forets/.julia/v0.6/.pkgbenchmark/IntervalArithmetic_tune.json
Benchmarking: 100%|█████████████████████████████████████| Time: 0:00:13
[5/5]: "Intervals"
[3/3]: "pi"
Benchmarkresults:
Package: IntervalArithmetic
Date: 27 Jun 2018 - 17:05
Package commit: 148bdb
Julia commit: 0d7248
BenchmarkGroup:
5-element BenchmarkTools.BenchmarkGroup:
tags: []
"Sum" => 2-element BenchmarkGroup([])
"Constructors" => 1-element BenchmarkGroup([])
"Arithmetic" => 4-element BenchmarkGroup([])
"Elementary functions" => 4-element BenchmarkGroup([])
"Intervals" => 3-element BenchmarkGroup([])
|
Sorry, yes that worked, but then I was trying to follow the instructions in the file to do
That seems to be where things went wrong. |
Ah, OK i see. It is complaining because "v0.13.0" still uses |
Ah I see. Isn't that a bug not to use the same version of the benchmarks
file for the two different versions?
…On Wed, 27 Jun 2018, 4:22 pm Marcelo Forets, ***@***.***> wrote:
Ah, OK i see. It is complaining because "v0.13.0" still uses @benchgroup.
Do you want me to remove those instructions?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALtTp6kylekVT2uYMj6IrVpGK6hvHYxks5uA-lwgaJpZM4USaLc>
.
|
It is perhaps a good idea to include |
Admittedly if there are two different versions of |
Thanks for the contribution! |
update benchmarks to use BenchmarkGroup() syntax