Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: Passing a Method Name to a Method, Redux Date: Thu, 23 Jun 2011 19:48:08 -0700 Organization: A noiseless patient Spider Lines: 32 Message-ID: <1lu707p0cpr9vhrpv51d7hmst6bt1qdbcv@4ax.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="7Qrvczazr82YckO5XW8Vtw"; logging-data="22870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IfCAVbMW/G3p1RXrTjVcWDqJL+BdApvo=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:TJsjUF6lM4KPI9BIwtCzUAdZlXA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5625 On Thu, 23 Jun 2011 18:30:21 -0700, markspace <-@.> wrote: >Some other things I'd do: >1. Make life easier on the Mark I eyeball and print out your timing in >seconds: > > System.out.println( " Duration=" + (Duration/1e9) ); Yes, if this were not just test code. >2. Specify your command line arguments. I found this affected the >timing greatly (over 100% faster than in the IDE) . There are none. >C:\Users\Brenden\Dev\Test2\src>javac -g:none test\CallingTest.java > >C:\Users\Brenden\Dev\Test2\src> >C:\Users\Brenden\Dev\Test2\src>java -server test.CallingTest >Timing Testing of Character Searching > >Character Sequential Search Duration=22.251718931 >Character Binary Search Duration=21.492850347 >Character Treeset Search Duration=19.472623928 >Hash Test Duration=0.098741719 ^^^^^^^^^ What is this one, please? Sincerely, Gene Wirchenko