Created
December 28, 2018 22:06
-
-
Save andrebrait/9f5c10e178cc2d79b3e457c0e962fa7d 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
@State(Scope.Thread) | |
public static class MyState { | |
public int a = 1; | |
public int b = 2; | |
} | |
@Benchmark | |
public int testMethod(MyState state) { | |
int sum = state.a + state.b; | |
return sum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment