Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: greatly differing processing time between java and Linux while calculating hashes? Date: Sun, 09 Sep 2012 22:35:37 +0200 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 1Lff0uCSIsKtUsogIlywFgtuIeXN41m4x/aQBSls5dZAJ8OV9ZlU2xg9fZlUm/IhQ= Cancel-Lock: sha1:tk2RgN1VJPr1ERSIGHlLl6yGz/8= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:18631 On 09.09.2012 04:43, qwertmonkey@syberianoutpost.ru wrote: > What do you think is going on here? As far as I could extract from that code (which I find pretty badly readable btw.) you are measuring digest calculation and IO. What measures did you take to ensure there are no effects from OS buffering? Also, why are you comparing apples (Java) and oranges (Linux) - at least in the subject? Are you aware that the JVM has some startup time which can be significant when measuring run once applications? And, why the heck, are there still people around who write a return like a method call - with brackets? ... robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/