def circeDecodeEachMassiveContent()

in benchmarks/src/main/scala/benchmark/JsonDecodeBenchmark.scala [86:106]


  def circeDecodeEachMassiveContent(bh: Blackhole) = {
    massiveContentsListJson.asArray.foreach { contentJsonArray: Vector[Json] =>
      val results =
        for {
          contentJson <- contentJsonArray
          content = contentJson.as[Content].fold(e => throw e, identity)
        } yield content
      val response = SearchResponse(
        status = "ok",
        userTier = "foo",
        total = 123,
        startIndex = 123,
        pageSize = 123,
        currentPage = 123,
        pages = 123,
        orderBy = "foo",
        results = results
      )
      bh.consume(response)
    }
  }