These are chat archives for atomix/atomix

Apr 2017
Jordan Halterman
Apr 09 2017 21:47

either way’s fine. The Copycat client is thread safe. But typically when I do rudimentary performance tests I do something like:

for (int i = 0; i < 10; i++) {

to ensure there are 10 writes outstanding from the client, and then in recursiveWrite

private void recursiveWrite(CopycatClient client) {
  client.submit(new SomeWrite()).whenComplete((r, e) -> recursiveWrite(client));

Then I pass around an AtomicInteger to do counting. But just using 10 threads should have the same effect