Skip to content

Commit 40f2e14

Browse files
committed
Add micro bench test about tuples
1 parent 5e0100d commit 40f2e14

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/bench/tuple.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Test {
2+
val xs0 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
3+
assert(xs0(15) == 16)
4+
// 2.787s
5+
6+
val xs1 = xs0 ++ xs0
7+
assert(xs1(31) == 16)
8+
// 3.354s
9+
}

0 commit comments

Comments
 (0)