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

Running `@btime` multiple times, three of them shown below, outputs: 281.849 ns (7 allocations: 176 bytes) 279.452 ns (7 allocations: 176 bytes) 282.479 ns (7 allocations: 176 bytes) The observed...

```julia using BenchmarkTools x = 4 let y = x @btime y^2 end ``` or ```julia using BenchmarkTools x = 4 let y = x @btime y^2 end ``` Throws...

bug

This proposes to re-organise `show` for `@benchmark`. The idea is: * Put the most important information first -- closes #236 * Put all the numbers above the histogram * Make...

enhancement
needs tests

(Apologies if this not the proper place/way for me to ask this question.) I recently discovered that `@benchmark` does not work the way I thought it did--and hence is not...

question

Is there a way to define benchmarks using `@benchmark` in a script file `script.jl` and run them via `$ julia script.jl`? From the runtime of the Julia command, seems that...

documentation

Closes https://github.com/JuliaCI/BenchmarkTools.jl/issues/221 Fixes a bug where every iteration of the for loop would overwrite the previous benchmark case. Test.

I use `@btime` (and hypertime) to time, looking for the minimum time. They both take some time, longer than `@time` which isn't reliable. I was thinking would it be valuable...

enhancement

It appears `tune!` does not execute `setup` before every run, leading to errors in certain cases. See below for a MWE: ```Julia using BenchmarkTools function f!(x::AbstractVector) length(x) == 2 ||...

Unlike `@time`, `@btime` throws an error that fun is undefined when I run ``` using BenchmarkTools f(x) = x^2; g(x) = x^3; h(x) = x^4 @btime f(2.0) # This works...

bug

When I'm comparing different versions of a function I like to do something like ```julia function func1(x) # code end function func2(x) # code end function func3(x) # code end...