This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Meaningless Drivel and the fly likes C#  28 times faster than Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "C#  28 times faster than Java" Watch "C#  28 times faster than Java" New topic
Author

C# 28 times faster than Java

Fyodor Myshkin
Greenhorn

Joined: Nov 05, 2001
Posts: 25

http://gotdotnet.com/team/compare/petshop.aspx


"And remember, when you look into the pit, the pit looks back into you."<br /> -- Anonymous INTERCAL hacker
Stevie Kaligis
Ranch Hand

Joined: Feb 04, 2001
Posts: 400
Yeah...,
somebody also told me that turtles run faster than rabbits !
can you believe that ?
[This message has been edited by Stevie Kaligis (edited November 10, 2001).]
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
According to people in that site's message boards, the test was a biased one. Whereas the Java Pet Store is an unoptimized example of how to properly code a J2EE app, the .NET folks performed optimizations that would ensure their application performed better. One person suggested that if someone were to take the .NET app's code and port ir back to Java, running on say Tomcat, the Java version would perform better.
Mohandas Goel
Greenhorn

Joined: Jul 18, 2001
Posts: 4

This is sun's response to the comparison.
http://java.sun.com/j2ee/blueprints/petstorefaq.html
Petr Igorovich Kurchatov
Greenhorn

Joined: Oct 21, 2001
Posts: 11
Originally posted by Mohandas Goel:

This is sun's response to the comparison.
http://java.sun.com/j2ee/blueprints/petstorefaq.html

Sounds like a bunch of lame excuses. If you optimise the code you lose platform independence, if you dont it's sloooooooooooow.
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

And in contrast, C# is only in development phase and so non-reliable! As .Net uses similar architecture of Virtual Machine like Java why should it be faster?

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Andy Rodriguez
Ranch Hand

Joined: Oct 16, 2001
Posts: 95
While that whitepaper surely did one thing right , and that was getting everyones attention - at least in the developer community , but what is absurd is the fact that what good is a study comparing apples and oranges ? 14,273 LOC vs 4410 LOC of .Net , ??? Any application that uses stored proc's and is built from scratch to a requirement in mind is bound to have less code , now next comparison COBOL/CICS - 1200kLOC vs 4410 LOC in .Net , surely .Net beats COBOL

------------------
My ramblings @
http://javarecon.tripod.com


My ramblings @<br /> <a href="http://javarecon.tripod.com" target="_blank" rel="nofollow">http://javarecon.tripod.com</a>
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
But some COBOL shop will run the tests and run the COBOL on a mainframe and the .net on a 486/8m RAM and claim COBOL is faster.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Petr Igorovich Kurchatov:
Sounds like a bunch of lame excuses. If you optimise the code you lose platform independence, if you dont it's sloooooooooooow.
That's not what it says. Sun says - rightly - that the application is a showcase for J2EE development patterns, not a realistic example. It is deliberately sub-optimal in both performance and amount of code. Microsoft isn't comparing like for like here.
- Peter
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
You can find similar comparisons with different EJB servers. IBM has a study that shows that WebSphere is 4 times faster than WebLogic. WebLogic has tests that show they are 5 times faster than WebSphere. And Oracle has tests that show they are 3 times faster than both. The numbers don't mean a thing
BTW, isn't MS well known for lies and deception? Didn't Bill Gates himself get on the stand in a court of law and lie about a videotape? MS has zero credibility!


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I also noticed that they didn't specify which EJB server they used. If they used the reference implementation then that would also explain the results since the reference implementation is not meant to be used in a production environment.
Alok Pota
Ranch Hand

Joined: Mar 07, 2001
Posts: 185
Less LOC does not necessarily mean good codebase. Remember the hidden/green commented out boilerplate code in MFC that the Visual Studio injects throughout one's code.
Less code means
more hidden magical code executed by Microsoft's runtime somewhere and less control for you.

Dharmesh Chheda
Ranch Hand

Joined: May 08, 2001
Posts: 204
Yeah it is C# is faster than Java .. and it will disappear from the market 28 times faster than JAVA

[This message has been edited by Dharmesh Chheda (edited November 12, 2001).]


regards,<br />Dharmesh Chheda
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Putting this thread into flames
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Fyodor,
you should re-register, please conform to the naming policy of javaranch!
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
G Vanin there is no naming policy in the MD forum.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
And what's wrong with Fyodor's name anyway?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Perhaps it's "obviously fictitious" - to Russians at least. It appears to consist of two first names, and we know that no real people have names like that. I'm guessing it's a Dostoevsky reference.

[This message has been edited by Jim Yingst (edited November 20, 2001).]


"I'm not back." - Bill Harding, Twister
Lalooprasad Yadav
Ranch Hand

Joined: Nov 03, 2001
Posts: 92


It appears to consist of two first names, and we know that no real people have names like that.

Objection. This is an indirect attack on our spiritual leader Thomas Paul .
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
I second Laloo's objection. This is an obvious, un-provoked attack against our spiritual leader Thomas Paul. "Myshkin" is a first name? Jim, what made you think so? I am just curious. We do not know who is "Fyodor Myshkin", but I think you are very close with your Dostoevsky hypothesis. Dostoevsky first name is "Fyodor" - or close to it "Myshkin" is LAST name of one of his personages, the main personage of his famous novel "The Idiot".
[This message has been edited by Mapraputa Is (edited November 20, 2001).]


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
> Objection. This is an indirect attack on our spiritual leader
> Thomas Paul .
My apologies; I didn't mean to be indirect.
> This is an obvious, un-provoked attack against our spiritual
> leader Thomas Paul.
That's more like it.
> "Myshkin" is a first name? Jim, what made you think so?
I googled references to the "Prince Myshkin" character from the novel. It wasn't immediately apparent what his full name was, but it seemed to me that royals are generally identified by their first names only, so "Prince Myshkin" seemed to indicate that "Myshkin" was a first name. I guess my research was voided by my falling into one of those insidious cultural assumptions.
So OK, if the character in the novel had a younger brother, also a prince, what would he be called? Prince Myshkin II? I know it's common historically for royals to re-use names a lot, but it seems to me that the burn rate on names would be pretty high, and soon you'd have Myshkin XVII and so on. (Is there a Cyrillic equivalent of Roman numerals? ) For all I know the character in the novel is an only child who dies at the end, but you get the idea...
[This message has been edited by Jim Yingst (edited November 20, 2001).]
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
It wasn't immediately apparent what his full name was
You must be kidding.
Try http://www.google.com/search?q=Dostoevsky+idiot and the first link will give you:
"Prince Myshkin/ Prince Leo Nikolayevich Myshkin/ the idot: the hero of the novel."
URL: http://community.middlebury.edu/~beyer/courses/previous/ru351/novels/idiot/index4.shtml
The first name is "Leo", which should be "Lev", but Ok...
So OK, if the character in the novel had a younger brother, also a prince, what would he be called
Prince Myshkin Youngest, I suppose Actually, you are right. To call princes by first names was probably more typical. By the time, the novel was written, princes themselves were not very typical, so it wasn't really a big problem how to call them... If I am wrong, other Russians here will correct me
Is there a Cyrillic equivalent of Roman numerals?
Oh. Yes. We call them "Arabic numbers"
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
I was kidding about Arabic numbers. We have Roman numerals also. They even look pretty much like yours
[This message has been edited by Mapraputa Is (edited November 21, 2001).]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
But if you google "Fyodor Myshkin" the links all prominently refer to "Prince Myshkin". I'm sure that if I looked further the complete name was given, but the fact remains that it was not immediately apparent. I neglected to consider the possibility of backwards alien naming conventions , and stopped my research prematurely.
> We have Roman numerals also. They even look pretty much like
> yours.
Yeah, but you probably reverse the order of the letters or something along those lines, just to confuse the rest of us.
Lalooprasad Yadav
Ranch Hand

Joined: Nov 03, 2001
Posts: 92

If I am not mistaken, the Prince's first name is used only once in the novel. It's in the final part when Rogozhin calls him by his first name and quite easy to miss considering the emotional intensity of the scene.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Originally posted by Mapraputa Is:
I second Laloo's objection. This is an obvious, un-provoked attack against our spiritual leader Thomas Paul.
I am proud to see that my loyal followers are out there defending me.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
I used to work with a guy whose name was "James Bond".
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Originally posted by Jim Yingst:
Yeah, but you probably reverse the order of the letters or something along those lines, just to confuse the rest of us.

These are Arabic and Jew people who reverse the order of the letters to confuse you, not we. Jews went even further: they skip vowels to make their writing totally incomprehensible for foreigners.
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Originally posted by Lalooprasad Yadav:
If I am not mistaken, the Prince's first name is used only once in the novel. It's in the final part when Rogozhin calls him by his first name and quite easy to miss considering the emotional intensity of the scene.

YOU are Russian! YOU are Petr I. Kurchatov!
 
permaculture playing cards
 
subject: C# 28 times faster than Java