In the last post, we saw that benchmarks don’t always measure what we think they measure. Let’s look at another instance of this problem today, starting with this rather simple benchmark: 1@RunWith(AndroidJUnit4::class) 2classDataBenchmark { 3@get:Rule 4valbenchmarkRule = BenchmarkRule() 5 6// Generate data in [0..255] 7privatevaldata = IntArray(65_536) { 8it % 256 9 } 1011@Test12funprocessData() { 13varsum = 0f14benchmarkRule.measureRepeated { 15for (dindata) { 16if (d < 128) { 17sum+=d ...