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.
2 Likes
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.