Thanks for your reply,
On Netbeans Platform 6.1 :
With the same code and System.out.println : 2-3ms
With FileAppender : 2-5ms
On Netbeans Platform 6.7 :
With the same code and System.out.println : 19-30ms
With FileAppender : 2-5ms
Greg
Douglas E Wegscheid wrote:
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 <[email protected]> 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?
--
Le génie logiciel est un art, il est difficile de le maitriser mais d'autant
plus de le comprendre.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]