Skip to content

Commit

Permalink
Add benchmarks for collecting zip iterators (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters authored and ararslan committed Oct 6, 2018
1 parent 67af382 commit 489d6b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/misc/MiscellaneousBenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,13 @@ for T in (Float32, Float64, Complex{Float32}, Complex{Float64})
g[string(T)] = @benchmarkable perf_copy_23042($(Foo_23042(a)), $(Foo_23042(b)))
end

###############################################
# zip iterator

g = addgroup!(SUITE, "iterators", ["zip"])
for N in (1,1000), M in 1:4
X = zip(Iterators.repeated(1:N, M)...)
g["zip($(join(fill("1:$N", M), ", ")))"] = @benchmarkable collect($X)
end

end

0 comments on commit 489d6b6

Please sign in to comment.