in benchmarks/src/main/scala/benchmark/JsonDecodeBenchmark.scala [63:81]
def circeDecodeEachContent(bh: Blackhole) = {
val results =
for {
i <- 1 to 10
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)
}