10 public static void main(String[] args) {
11 if (args[0].equals("2")) {
17 Table t1 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
19 Table t2 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
24 final int NUMBER_OF_TESTS = 200;
26 for (int i = 0; i < NUMBER_OF_TESTS; i++) {
28 System.out.println("Doing: " + i);
32 IoTString ia = new IoTString(a);
33 IoTString ib = new IoTString(b);
36 t1.createNewKey(ia, 351);
37 t2.createNewKey(ib, 321);
39 t1.startTransaction();
41 t1.commitTransaction();
44 for (int i = 0; i < NUMBER_OF_TESTS; i++) {
46 System.out.println("Doing: " + i);
50 IoTString ia = new IoTString(a);
51 IoTString ib = new IoTString(b);
53 t2.startTransaction();
55 t2.commitTransaction();
64 for (int i = 0; i < NUMBER_OF_TESTS; i++) {
67 IoTString ia = new IoTString(a);
68 IoTString ib = new IoTString(b);
70 System.out.println(ib + " -> " + t1.getCommitted(ib));
71 System.out.println(ia + " -> " + t2.getCommitted(ia));