We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionGeneral Discussion,  Status › server vs client JVM: is server faster
Page Index Toggle Pages: 1
server vs client JVM: is server faster? (Read 875 times)
server vs client JVM: is server faster?
Aug 6th, 2008, 5:12pm
 
Hello

I've just been testing some code with simple benchmarks (er... random looped method calls, mainly) for running the server JVM rather than the client, as described in this now very old site -

http://kano.net/javabench/

For me, the server JVM is averaging about 10% faster than client. I'm wondering: presumably the same speed gains would help Processing be as fast as possible? Or are there downsides (e.g. the server JVM hogs more memory, for example). At any rate, might it be worth having an option in Processing to choose client or server JVM to get a little extra oomph?

I've been using Processing both via Netbeans with java 1.6.0_2 and with the Processing editor. The latter currently ships with 1.4, yes? It doesn't seem to have the server JVM included. AFAIK it doesn't affect anything else except memory load...?

Cheers,

Dan
Re: server vs client JVM: is server faster?
Reply #1 - Aug 15th, 2008, 4:40pm
 
You'll get different results depending on the machine, OS, number of processors, what type of things you're doing in the sketch, etc.

In the past, for instance, the server VM had atrocious garbage collection (very bad for interactive applets), though I think maybe that's been improved. When a machine is multiprocessor, I believe that the server VM is employed automatically to make use of both processors. (Or maybe that's on the Mac? I don't recall exactly).

At any rate, it's inconclusive. If you want to see an option, file it as an 'enhancement' in the bugs db.
Page Index Toggle Pages: 1