10 public static void main(String[] args) {
11 if(args[0].equals("2"))
13 else if(args[0].equals("3"))
15 else if(args[0].equals("4"))
17 else if(args[0].equals("5"))
24 static Thread buildThread(String prefix, Table t) {
27 for(int i=0; i<10000; i++) {
29 IoTString ia=new IoTString(a);
31 System.out.println(ia+"->"+t.get(ia));
38 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
40 System.out.println(t1);
44 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
45 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
48 Thread thr1=buildThread("p1", t1);
49 Thread thr2=buildThread("p2", t2);
55 } catch (Exception e) {
61 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
62 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
65 for(int i=0; i<600; i++) {
68 IoTString ia=new IoTString(a);
69 IoTString ib=new IoTString(b);
73 System.out.println(ib+"->"+t1.get(ib));
74 System.out.println(ia+"->"+t2.get(ia));
79 Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
81 Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
83 for(int i=0; i<600; i++) {
86 IoTString ia=new IoTString(a);
87 IoTString ib=new IoTString(b);
91 System.out.println(ib+"->"+t1.get(ib));
92 System.out.println(ia+"->"+t2.get(ia));