# Convert tuple to array

**URL:** <https://discourse.julialang.org/t/convert-tuple-to-array/2147>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 17, 2017, 6:41am UTC](https://discourse.julialang.org/t/convert-tuple-to-array/2147 "2017-02-17T06:41:10Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![PabloZubieta](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@PabloZubieta](https://discourse.julialang.org/u/PabloZubieta)\
**Post date:** [February 17, 2017, 8:27am UTC](https://discourse.julialang.org/t/convert-tuple-to-array/2147/9 "2017-02-17T08:27:33Z")

</div>

Both should perform the same. Do not benchmark in global scope. If you put them in a function, e.g. `foo(t) = collect(t)` and `bar(t) = [i for i in t]`, you should see about the same performance.

---

_[View the full topic](https://discourse.julialang.org/t/convert-tuple-to-array/2147)._
