# Retain computation results with @btime

**URL:** <https://discourse.julialang.org/t/retain-computation-results-with-btime/62644>\
**Category:** New to Julia\
**Created:** [June 9, 2021, 8:50pm UTC](https://discourse.julialang.org/t/retain-computation-results-with-btime/62644 "2021-06-09T20:50:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 9, 2021, 9:35pm UTC](https://discourse.julialang.org/t/retain-computation-results-with-btime/62644/3 "2021-06-09T21:35:30Z")

</div>

> [@Save @btime output](https://discourse.julialang.org/t/save-btime-output/53595/6):
>
> This is asked every other week, so probably we should have it directly in BenchmarkTools: julia\> @eval BenchmarkTools macro btimed(args...) \_, params = prunekwargs(args...) bench, trial, result = gensym(), gensym(), gensym() trialmin, trialallocs = gensym(), gensym() tune\_phase = hasevals(params) ? :() : :($BenchmarkTools.tune!($bench)) return esc(quote local $bench = $BenchmarkTools.@benchmarkable $(args...) $…

---

_[View the full topic](https://discourse.julialang.org/t/retain-computation-results-with-btime/62644)._
