BenchmarkTools.jl icon indicating copy to clipboard operation
BenchmarkTools.jl copied to clipboard

A benchmarking framework for the Julia language

Results 102 BenchmarkTools.jl issues
Sort by recently updated
recently updated
newest added

When I interrupt `@benchmarksuite` it is permanently broken: ```julia julia> @benchmarkset "suite" for k in 1:50000 @case "case $k" rand($k, $k) end ^CERROR: InterruptException: Stacktrace: [1] eval @ ./boot.jl:373 [inlined]...

bug

When I run the example code from the docs I get the following ```julia julia> @benchmarkset "suite" for k in 1:5 @case "case $k" rand($k, $k) end 1-element BenchmarkTools.BenchmarkGroup: tags:...

It seems, that `BenchmarkTools.Trial` uses only single value for storing number of allocations and memory usage during trial runs. And judging from the results it track only minimum allocations and...

documentation

There is room to show a bit more information with `@btime`, and I think the next number to show after the minimum is the mean. So this PR does this:...

enhancement

I recently started exploring options for more precise and low-level benchmarking tools. As it is this PR is *notready* to be included in `BenchmarkTools`, but should provide a starting point...

This still needs some cleanup and the history is a bit messy. In essence this measures both the time actually spend running on the cpu and the time passed. If...

Hi, thanks for making this fantastic module! One of the many reasons I love Julia. :-) I think it would be great if BenchmarkTools came with a macro to report...

enhancement

A common issue with profiling micro-kernels is the need to gather enough samples to have significant results. This usually involves function setup, execution repetition, etc. which it turns out, BenchmarkTools.jl...

MWE: ```julia julia> using BenchmarkTools julia> function f(x) if !all(iszero, x) error("nonzero") else x[1] = 1 end end f (generic function with 1 method) julia> bm = @benchmarkable f(x) setup=(x=zeros(3))...

It's a bit annoying when you have to use this convoluted `Ref` trick to prevent the compiler from constant-folding the whole calculation (ala #130): ```jl julia> @btime exp(1); 0.052 ns...

enhancement