Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19313

Re: greatly differing processing time between java and Linux while calculating hashes?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: greatly differing processing time between java and Linux while calculating hashes?
Date 2012-10-13 15:12 -0700
Organization Canadian Mind Products
Message-ID <bnpj78lfubv8mn448eahtearqcio0hicbq@4ax.com> (permalink)
References <k2jgo0$ocg$1@speranza.aioe.org>

Show all headers | View raw


On Mon, 10 Sep 2012 01:45:36 +0000 (UTC),
qwertmonkey@syberianoutpost.ru wrote, quoted or indirectly quoted
someone who said :

>~ 
> Well, if I understand you, you will have to read in the file you are 
>checksumming anyway, right?

You want in both cases to read it into RAM, then start your clock,
then do your computation, then stop your clock, so that you measuring
the difference in computation, not i/o.

JVMs take a while to get warmed up. When doing benchmarks you want to
run a few laps before you turn on the clock.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The iPhone 5 is a low end Rolex. 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

greatly differing processing time between java and Linux while calculating hashes? qwertmonkey@syberianoutpost.ru - 2012-09-10 01:45 +0000
  Re: greatly differing processing time between java and Linux while calculating hashes? Roedy Green <see_website@mindprod.com.invalid> - 2012-10-13 15:12 -0700

csiph-web