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


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

Re: method micro benachmarking with reflection

Newsgroups comp.lang.java.programmer
Date 2015-07-30 10:30 -0700
References (1 earlier) <mpd4tj$4aq$1@dont-email.me> <72344bf7-bb09-45b2-9e7f-723576fbb639@googlegroups.com> <mpd8qo$ijj$1@dont-email.me> <d2ba844b-8397-476c-8980-5cafc89487ca@googlegroups.com> <mpdghq$hti$1@dont-email.me>
Message-ID <9c2e6e13-8d02-4bc6-ba02-91d9cbf4123b@googlegroups.com> (permalink)
Subject Re: method micro benachmarking with reflection
From e.d.programmer@gmail.com

Show all headers | View raw


On Thursday, July 30, 2015 at 11:42:29 AM UTC-4, Eric Sosman wrote:
>      One of the articles I linked to suggests doing "several"
> times that many loop executions ...
> 
>      ... in the *warmup* phase, before serious measurements.

Right.  It helps if you call the method before getting the initial timestamp to exclude the one time (classloader, public class variable creation) stuff.
The 10000 was a random number.  It depends how long it takes to run the method once, and how long you want to spend testing it.  If 10000 calls only takes a few minutes you could do 100000 calls to be more accurate.  If 10000 calls takes 10 hours, do 100000 calls if you have a week to test...

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


Thread

method micro benachmarking with reflection philipp.kraus.flashpixx@gmail.com - 2015-07-30 03:41 -0700
  Re: method micro benachmarking with reflection Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 07:16 -0400
    Re: method micro benachmarking with reflection Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 21:52 -0400
      Re: method micro benachmarking with reflection Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 21:55 -0400
  Re: method micro benachmarking with reflection Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-07-30 08:23 -0400
    Re: method micro benachmarking with reflection e.d.programmer@gmail.com - 2015-07-30 06:00 -0700
      Re: method micro benachmarking with reflection Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-07-30 09:30 -0400
        Re: method micro benachmarking with reflection e.d.programmer@gmail.com - 2015-07-30 08:26 -0700
          Re: method micro benachmarking with reflection Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-07-30 11:42 -0400
            Re: method micro benachmarking with reflection e.d.programmer@gmail.com - 2015-07-30 10:30 -0700
              Re: method micro benachmarking with reflection Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-07-30 14:20 -0400
        Re: method micro benachmarking with reflection Jeff Higgins <jeff@invalid.invalid> - 2015-07-30 16:08 -0400
    Re: method micro benachmarking with reflection philipp.kraus.flashpixx@gmail.com - 2015-07-30 06:11 -0700
    Re: method micro benachmarking with reflection v_borchert@despammed.com (Volker Borchert) - 2015-07-30 21:33 +0000
      Re: method micro benachmarking with reflection Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-07-30 18:18 -0400
        Re: method micro benachmarking with reflection Arne Vajhøj <arne@vajhoej.dk> - 2015-07-30 20:13 -0400
  Re: method micro benachmarking with reflection Jeff Higgins <jeff@invalid.invalid> - 2015-07-30 17:11 -0400
  Re: method micro benachmarking with reflection v_borchert@despammed.com (Volker Borchert) - 2015-07-30 21:53 +0000
  Re: method micro benachmarking with reflection Sebastian <news@seyweiler.dyndns.org> - 2015-08-04 21:44 +0200

csiph-web