Пример #1
0
 public void testParallelComplexNoExecutor() throws MustacheException, IOException {
   System.out.println("complex.html evaluations per millisecond:");
   for (int i = 0; i < 3; i++) {
     {
       MustacheFactory cf = init();
       Mustache m = cf.compile("complex.html");
       complextest(m, new ParallelComplexObject()).toString();
       long start = System.currentTimeMillis();
       int total = 0;
       while (true) {
         complextest(m, new ParallelComplexObject());
         total++;
         if (System.currentTimeMillis() - start > TIME) break;
       }
       System.out.println("Serial with callable: " + total / TIME);
     }
   }
 }