Skip to content

Commit 90d43b4

Browse files
committed
Add benchmark for heterogenous tuples/array literals
Ref. JuliaLang/julia#39035
1 parent 46d6722 commit 90d43b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/misc/MiscellaneousBenchmarks.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,4 +398,12 @@ perf_g6() = sum([+(a,b,c,d,e,f) for a in 1:4, b in 1:4, c in 1:4, d in 1:4, e in
398398

399399
SUITE["perf highdim generator"] = @benchmarkable perf_g6()
400400

401+
#############################################
402+
# Performance of heterogenous tuples #39035 #
403+
#############################################
404+
405+
perf_het_tuple() = b = [1, 2.0]
406+
407+
SUITE["perf heterogenous tuple"] = @benchmarkable perf_het_tuple()
408+
401409
end

0 commit comments

Comments
 (0)