> On 17 Mar 2015, at 10:24, Sven Van Caekenberghe <[email protected]> wrote:
> 
> Also, in your Java code I do not see a loop doing the benchmark 10 times ...

Just to make sure: where is your 10x loop in Java ?

similar thing (as far as I can tell) 10 times in java: 1.482 sec.
---
   public static void main(String[] args) {
       int length =0;
       try {
           String filename = 
"/home/anquetil/Documents/RMod/Tools/workspace/Blocks/jfreechart-0_9_0.mse";
           String content = new String(Files.readAllBytes(Paths.get(filename)), 
"UTF8");
           for (int i=0; i < content.length(); i++) {
               content.charAt(i);
               length = length+1;
           }
       } catch (IOException e) {
           e.printStackTrace();
       }
       System.out.println(length);
   }
---

Reply via email to