File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C# 28 times faster than Java

 
Fyodor Myshkin
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

http://gotdotnet.com/team/compare/petshop.aspx
 
Stevie Kaligis
Ranch Hand
Posts: 400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6450
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is sun's response to the comparison.
http://java.sun.com/j2ee/blueprints/petstorefaq.html
 
Petr Igorovich Kurchatov
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2373
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Andy Rodriguez
Ranch Hand
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 204
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting this thread into flames
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fyodor,
you should re-register, please conform to the naming policy of javaranch!
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G Vanin there is no naming policy in the MD forum.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what's wrong with Fyodor's name anyway?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Lalooprasad Yadav
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used to work with a guy whose name was "James Bond".
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic