Group: comp.lang.java.programmer
From: Razii
Date: Saturday, March 29, 2008 12:29 AM
Subject: Re: Counting words in text file (Mirek Fidler -- : was Java - c++, IO)

On Fri, 28 Mar 2008 21:04:49 -0600, Jerry Coffin
wrote:

>When I run them both on just the bible, I get a time of 3136 ms for your
>C++ code, and a time of 3860 ms for your Java code.

Can you post the times you get by including all three files in command
line, like this:

C:\>wc1 alice30.txt bible.txt bible2.txt>log.txt
Time: 6531 ms (c++)
C:\>java WordCount alice30.txt bible.txt bible2.txt>log.txt
Time: 6218 ms (java client)
C:\>java -server WordCount alice30.txt bible.txt bible2.txt>log.txt
Time: 5687 ms (java -server if you fixed the problem)

Also times varies, so post best of three...

News in English | Binaries Groups | 20lbs in 30 days