Created
December 28, 2018 22:06
-
-
Save andrebrait/97c2094768734f368a7a8ced4557028d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Benchmark | |
public void testMethod(MyState state, Blackhole blackhole) { | |
int sum1 = state.a + state.b; | |
int sum2 = state.a + state.a + state.b + state.b; | |
blackhole.consume(sum1); | |
blackhole.consume(sum2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment