Skip to content

Instantly share code, notes, and snippets.

@andrebrait
Created December 28, 2018 22:05
Show Gist options
  • Save andrebrait/c97af6a9fbb60105d5c7817e083322d6 to your computer and use it in GitHub Desktop.
Save andrebrait/c97af6a9fbb60105d5c7817e083322d6 to your computer and use it in GitHub Desktop.
@Benchmark
public void testMethod(Blackhole blackhole) {
int a = 1;
int b = 2;
int sum = a + b;
blackhole.consume(sum);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment