Re: What do Java programmers feel is missing from C#?



I don't think this guy knows what he's doing. There's no possible way "c#"
is that much slower. I doubt it's even slower at all. And besides, c#
doesn't have a speed. it's only language. It gets compiled to msil. you
could time the execution of msil, but not c#. If he was really interested
in doing a proper test, he would have at least run a profiler on each peice
of code to figure out where the time was spent.

Additionally, this nitwit makes the comment that the c# took more lines of
code than the java. Not that it really matters, but if it did, it's
probably because in the java version he combined several statements on to
single lines, where he didn't in c#.




"BobJ" <rjoslyn@xxxxxxxxxxxxx> wrote in message
news:OJidncGFiamodaPVnZ2dnUVZ_qbinZ2d@xxxxxxxxxxxxxxxx
I never met a benchmark I didn't like.
BobJ
"Harry Walters" <badabing@xxxxxxxxxxxx> wrote in message
news:t8eet3tjgcj9orm4p7fitrmtk9kun55o3h@xxxxxxxxxx
On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
<look@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:


"mc" <look@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:vxwBj.14846$dT.4812@xxxxxxxxxxxxxxxxxxxxxxxxx
I did a quick Google search for "java c# benchmark" (try it yourself)
and it seems that it's only that offshored code that is slow and
crappy
and not Java itself, because all benchmarks I could find concludes
that
Java is way faster than C#.

Well, this one:

http://www.manageability.org/blog/archive/20030520%23p_the_problem_with_cameron

is the first one that comes up, but obviously something has gone wrong.
A
factor of 7700 speed difference? They're just not measuring the same
thing. If C# were 7700 times slower than Java, it would be unusable.

I'm going to explore this and see what I can find out. A quick test
shows
that his C# program is indeed woefully slow.

Quick preliminary answer: Both of the programs measure the time taken to
*compile* a regex, not the time taken to run it. The two compilers are
probably doing very different things.


It's like dude went very far out of the way to find some bizarre
benchmark to suit his goal. Who uses compiled regexs in c#
applications?




.



Relevant Pages

  • Re: Java is slower than C++!
    ... There are reasons why Java should be slower. ... It defines reasonably well how floating point should work, so it can be difficult to compile for hardware that is less accurate. ...
    (comp.lang.java.programmer)
  • Re: What do Java programmers feel is missing from C#?
    ... because all benchmarks I could find concludes that ... Java is way faster than C#. ... *compile* a regex, not the time taken to run it. ... Who uses compiled regexs in c# ...
    (comp.lang.java)
  • Re: What do Java programmers feel is missing from C#?
    ... I never met a benchmark I didn't like. ... Java is way faster than C#. ... *compile* a regex, not the time taken to run it. ... Who uses compiled regexs in c# ...
    (comp.lang.java)
  • Re: can I compile java to a platform
    ... >>> Not sure of the details but is it possible to compile my java program ... C++ would be made to compile to program to ... faster, or slower, than the Sun JVM. ...
    (comp.lang.java.programmer)
  • Re: simple compilaton question
    ... > before I try to compile Main? ... "javac *.java" in each of my java source file directories the first ... with gcj. ... slow to ask for help on mailing lists. ...
    (comp.lang.java.programmer)