The Java runtime used by Sun’s JavaFX is mature and well optimized, which means that non-visual code will generally perform well. I’ve just spotted that Josh Marinacci at Sun put up a version of my countprimes test to illustrate this. Here’s the JavaFX version. On my system JavaFX and Silverlight are neck-and-neck for this – sometimes one is faster, sometimes the other. Flash is much slower, and Javascript not in the race.
Next stop: an Alchemy version.
Using Chrome the test is not too bad, only about 2x as slow.
But surely the whole point of JavaFX is that it will be used to write UI apps, not black box server side ones????
Gary
I agree; but raw performance often matters even in GUI clients – things like sorting arrays, calculating positions etc.
Tim
Tried the latest Firefox 3.2 nightly builds vs Chromium nightly builds as of this post’s time and Firefox wins.
http://www.itwriting.com/primetest/countprimes.html
Firefox 3.2 nightly
Number of primes up to: 1000000 is 78498, counted in 2.056 secs.
Chromium nightly
Number of primes up to: 1000000 is 78498, counted in 3.519 secs.