# Opinions about code performance

**URL:** <https://discourse.julialang.org/t/opinions-about-code-performance/83692>\
**Category:** General Usage\
**Created:** [July 3, 2022, 11:13am UTC](https://discourse.julialang.org/t/opinions-about-code-performance/83692 "2022-07-03T11:13:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [July 3, 2022, 11:13am UTC](https://discourse.julialang.org/t/opinions-about-code-performance/83692/1 "2022-07-03T11:13:42Z")

</div>

I timed a single loop of my code with time, and got the following statistics. Could anyone please comment as to whether the performance is about normal or actually there are too many allocations which should be reduced to imprve on performance? Thanks

> 71.433633 seconds (218.69 M allocations: 15.430 GiB, 5.72% gc time)

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [July 3, 2022, 11:18am UTC](https://discourse.julialang.org/t/opinions-about-code-performance/83692/2 "2022-07-03T11:18:32Z")

</div>

> [@LeoK987](#):
>
> too many allocations which should be reduced to imprve on performance

Probably, although hard to know without seeing the code…
