what is the relative performance of System.out.println on the two platforms?
what is the relative performance of log4j when using a FileAppender? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." gsydler <gsyd...@gmail.com> wrote on 09/09/2009 09:47:57 AM: > Hi, > > I've recently created a new Netbeans Platform application with a simple > module and a library wrapper (log4j). > > The module executes this code : > > RequestProcessor.getDefault().post(new Runnable() { > public void run() { > long time = System.currentTimeMillis(); > for (int i = 0; i < 200; i++) { > LOGGER.debug("i = " + i); > } > LOGGER.debug("time to display 200 logs : " + > (System.currentTimeMillis() - time)); > } > }); > > > If I execute the programme on Netbeans Platform 6.1, my code displays the > 200 logs in 1-5ms. > > If I execute the same programme on Netbeans Platform 6.7, it takes a > whopping 35647ms! > > Any ideas what's wrong?