Skip to content

Instantly share code, notes, and snippets.

@yangweigbh
Last active July 4, 2020 03:46
Show Gist options
  • Save yangweigbh/e16e8a6d52ee241771174851177ea42d to your computer and use it in GitHub Desktop.
Save yangweigbh/e16e8a6d52ee241771174851177ea42d to your computer and use it in GitHub Desktop.
@Test
public void myBenchmark() {
...
BenchmarkState state = benchmarkRule.getState();
while (state.keepRunning()) {
doSomeWork();
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment