# Type stability issues when using StaticArrays

**URL:** <https://discourse.julialang.org/t/type-stability-issues-when-using-staticarrays/19126>\
**Category:** Performance\
**Tags:** type-stability, staticarrays\
**Created:** [December 30, 2018, 7:32pm UTC](https://discourse.julialang.org/t/type-stability-issues-when-using-staticarrays/19126 "2018-12-30T19:32:20Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [January 1, 2019, 8:29pm UTC](https://discourse.julialang.org/t/type-stability-issues-when-using-staticarrays/19126/21 "2019-01-01T20:29:38Z")

</div>

```julia
julia> time1();
  0.000046 seconds (1 allocation: 80 bytes)

julia> time2();
  0.000055 seconds (1 allocation: 80 bytes)

```

But, as I said, _ **always** _ use BenchmarkTools for benchmarking.

---

_[View the full topic](https://discourse.julialang.org/t/type-stability-issues-when-using-staticarrays/19126)._
