That's a common misconception among Java folks. Leaving aside the
relative merits of the various web frameworks, .NET runtime is about
10% faster on Windows in steady state than Sun Server JRE, and it uses
half as much RAM to boot. Mono is slower than JRE (aside from app
start-up times, which are faster), but its memory consumption profile
is similar to that of Microsoft runtime. It helps when the runtime is
actually designed in a way that doesn't make methods virtual by
default, has reified generics, bytecode that's optimized for JIT, and
easy to use infrastructure to write your own compilers (which enables,
e.g. precompiled ASPX pages and regexes).

.NET is not really an option in the open source world (for a variety
of well known reasons), but make no mistake -- it is a technically
superior runtime in most aspects that matter. I'm hoping LLVM will
close the gap on the Linux/UNIX side.

I think today's Sun JRE does a good job given what it has to work
with, but it's crippled from the start by some unfortunate design
choices, and I don't see much improvement anywhere on the horizon,
aside from the dynamic extensions and OSGI in Java 7. Which is why
people are looking at e.g. Scala. Once the developer tries closures
and functional programming on sequences, it's kinda hard to go back to
Java.

On Dec 13, 3:31 pm, Marcin Mielżyński <[email protected]> wrote:
> DMB pisze:> This makes me wonder how these number compare to other Java 
> frameworks
> > as well as to Mono XSP.
>
> > It's hard to do an apples to apples comparison with these things, but
> > on the Microsoft side I've seen ASP.NET serve way more pages per
> > second than that (2-3x), on what would now be considered outdated
> > hardware. It probably helps that ASP.NET converts *.aspx pages into
> > MSIL, which then gets compiled into machine code on first hit, so
>
> That's the very reason .NET can't compete with JVM in terms of peak
> performance.
> Heavy inlining/devirtualization/optimistinc compilation is crucial to
> JVM performance and you can only achieve that using runtime profiles
> (well, there's PGO but that's different story).
>
> Most people forget to even make sure they run hotspot server compiler
> (-server) not to mention setting crucial to scala options like NewRatio
> (scala generates lots of small object you don't want to be promoted to
> old generation). Experimanting with options like
> MaxInlineSize/ClipInlining/different GCs can also have huge impact on
> performance.
>
> lopex

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to