Skip to content
Snippets Groups Projects
CollectionBenchmark.scala 244 B
Newer Older
Matt Bovel's avatar
Matt Bovel committed
package benchmarks.midterm22

import org.openjdk.jmh.annotations.*

class CollectionBenchmark extends AbstractCollectionBenchmark:
  @Benchmark
  def take() =
    haystack.take(size / 2)

  @Benchmark
  def drop() =
    haystack.drop(size / 2)