Skip to content

Commit 38e4fbd

Browse files
author
Antoine Brunner
committed
Add some missing benchmarks
1 parent 4c348c1 commit 38e4fbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bench-run/src/main/scala/tuples/ArrayOps.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import scala.runtime.DynamicTuple
55

66
@State(Scope.Thread)
77
class ArrayOps {
8-
@Param(Array("0"))
8+
@Param(Array("1"))
99
var size: Int = _
1010
var tuple: Tuple = _
1111
var array: Array[Object] = _
@@ -46,4 +46,9 @@ class ArrayOps {
4646
def productToArray(): Array[Object] = {
4747
DynamicTuple.productToArray(tuple.asInstanceOf[Product])
4848
}
49+
50+
@Benchmark
51+
def cloneArray(): Array[Object] = {
52+
array.clone()
53+
}
4954
}

0 commit comments

Comments
 (0)