perfect, just want I needed. Thanks Matt

On Thursday, May 7, 2015 at 3:57:44 PM UTC-4, Matt Bauman wrote:
>
> There's the (undocumented) `@timed` macro.  It returns a tuple of (result, 
> time, bytes allocated, percent GC time).
>
>
> https://github.com/JuliaLang/julia/blob/861f02712eb4b41c08fed3f21c5a4206b8d669bc/base/util.jl#L100-L112
>
> On Thursday, May 7, 2015 at 3:05:46 PM UTC-4, Edward Chen wrote:
>>
>> Cool, thanks -- but I would also like the bytes allocated
>>
>> On Thursday, May 7, 2015 at 3:02:51 PM UTC-4, Jacob Quinn wrote:
>>>
>>> http://docs.julialang.org/en/latest/stdlib/base/#Base.tic
>>>
>>> On Thu, May 7, 2015 at 1:00 PM, Edward Chen <[email protected]> wrote:
>>>
>>>> To whom it may concern:
>>>>
>>>> I am interested in testing the performance of my code. 
>>>>
>>>> I am familiar with using @elapsed in the following way:
>>>>
>>>> metric = Float64[]
>>>> push!(metric,@elapsed output = foo(input))
>>>>
>>>> Is there an analogous way for doing this with @time, or @allocated?
>>>>
>>>> Thanks,
>>>> Ed
>>>>
>>>
>>>

Reply via email to