# Memory usage with @benchmarkable

**URL:** <https://discourse.julialang.org/t/memory-usage-with-benchmarkable/15606>\
**Category:** General Usage\
**Created:** [September 28, 2018, 10:57am UTC](https://discourse.julialang.org/t/memory-usage-with-benchmarkable/15606 "2018-09-28T10:57:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennedich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennedich/32/4894_2.png) [@bennedich](https://discourse.julialang.org/u/bennedich)\
**Post date:** [September 28, 2018, 10:57am UTC](https://discourse.julialang.org/t/memory-usage-with-benchmarkable/15606/1 "2018-09-28T10:57:38Z")

</div>

```julia
julia> A = randn(10000,10000);
julia> b = @benchmarkable println(size($A)) samples=1;
julia> A = [];
julia> varinfo()
A 40 bytes 0-element Array{Any,1}
b 64 bytes BenchmarkTools.Benchmark{Symbol("##benchmark#363")}
julia> run(b);
(10000, 10000)

```

Where is the matrix stored at this point?

If I have a large suite of benchmarks in a `BenchmarkGroup`, like in the [example in the manual](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#the-benchmarkgroup-type), won’t it end up holding all of the data needed to run all benchmarks in memory at the same time?
