We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c348c1 commit 38e4fbdCopy full SHA for 38e4fbd
bench-run/src/main/scala/tuples/ArrayOps.scala
@@ -5,7 +5,7 @@ import scala.runtime.DynamicTuple
5
6
@State(Scope.Thread)
7
class ArrayOps {
8
- @Param(Array("0"))
+ @Param(Array("1"))
9
var size: Int = _
10
var tuple: Tuple = _
11
var array: Array[Object] = _
@@ -46,4 +46,9 @@ class ArrayOps {
46
def productToArray(): Array[Object] = {
47
DynamicTuple.productToArray(tuple.asInstanceOf[Product])
48
}
49
+
50
+ @Benchmark
51
+ def cloneArray(): Array[Object] = {
52
+ array.clone()
53
+ }
54
0 commit comments