Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Save @btime output

$
0
0

Is there a simple way to do this?

I just want to save the time n in milliseconds e.g. n = @btime foo for some benchmark like:

check = nothing

function checkaaa()
    rand(10) * rand(10)'
    return nothing
end

check = @btime checkaaa()
@test check !== nothing

julia> @test check !== nothing
Test Failed at REPL[397]:1
  Expression: check !== nothing
   Evaluated: nothing !== nothing
ERROR: There was an error during testing

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles