예제 #1
0
  public void runTest() throws Exception {

    deleteFiles(substitute("$datapath$/persistit*"));

    add(new Stress12txn("repeat=50 count=250000 size=100 seed=1"));
    add(new Stress12txn("repeat=50 count=250000 size=100 seed=2"));
    add(new Stress12txn("repeat=50 count=250000 size=100 seed=3"));
    add(new Stress12txn("repeat=50 count=250000 size=100 seed=4"));
    add(new Stress12txn("repeat=50 count=250000 size=100 seed=5"));
    add(new Stress12txn("repeat=50 count=250000 size=100 seed=6"));

    final Persistit persistit = makePersistit(16384, "20K", CommitPolicy.SOFT);

    try {
      execute(persistit);
    } finally {
      persistit.close();
    }
  }