Improve var name consistency in BindingBenchmark
This commit is contained in:
parent
4b745d8717
commit
534815400c
@ -39,10 +39,9 @@ class BindingBenchmark {
|
|||||||
|
|
||||||
@Benchmark
|
@Benchmark
|
||||||
fun andThenSuccess(blackhole: Blackhole) {
|
fun andThenSuccess(blackhole: Blackhole) {
|
||||||
val result =
|
val result = provideX().andThen { x ->
|
||||||
provideX().andThen { first ->
|
provideY().andThen { y ->
|
||||||
provideY().andThen { second ->
|
Ok(x + y)
|
||||||
Ok(first + second)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,10 +50,9 @@ class BindingBenchmark {
|
|||||||
|
|
||||||
@Benchmark
|
@Benchmark
|
||||||
fun andThenFailure(blackhole: Blackhole) {
|
fun andThenFailure(blackhole: Blackhole) {
|
||||||
val result =
|
val result = provideX().andThen { x ->
|
||||||
provideX().andThen { first ->
|
provideZ().andThen { z ->
|
||||||
provideZ().andThen { second ->
|
Ok(x + z)
|
||||||
Ok(first + second)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user