Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm considering creating a new "don't call it Metro" app for Windows 8, and am very interested in the Javascript/HTML5 dev options. I'm experienced with Javascript and Java but have no .NET experience, so the ability to start writing code without learning a new language appeals to me.

That said, my assumption is that there are performance limitations on a JS based app relative to a .NET app. My app would involve a reasonable amount of calculation but would be graphically fairly simple and mostly text based. Could anybody tell me what I could expect in terms of a performance gap here?

Please back it up with benchmarks/personal experience/documentation if possible.
Thanks!

share|improve this question
Why don't you write a small prototype of your app, including one representative calculation, and measure the performance? Everything else will end in wild guessing. – Doc Brown Oct 24 '12 at 13:58
I'm not looking for wild guessing, I'm looking for a general idea of how the two languages perform in a general sense on windows 8. I realize that there are variations based on specific use and hardware etc. I am hoping there had been some level of benchmarking done against a common suite of tests that could give me some idea of the pros/cons. This app would be a side project, not my livelihood, so developing 2 prototypes, one in an unfamiliar language is expensive. I'll do it if needed, but I was hoping that somebody could give some general guidance first. – ben336 Oct 24 '12 at 14:09
The short answer, no. No one can tell you what the performace gap would be without significantly more detail. – Walter Oct 24 '12 at 14:15
1  
@ben336 - They are saying it depends on what the application does, and you should do your own benchmarks, and avoid general statements like "javascript is slower/faster then ..." – Ramhound Oct 24 '12 at 15:07
1  
@ben336: your "shootout" link is about comparing a list of specific programs of a specific kind in different languages. The problem is that people often tend to highly overrate such results for their real world scenarios, which are most times quite different. If writing programs in a language you know is important for you, then this is what you should focus on first. Don't focus on "performance" as long as you don't face any real performance problems. – Doc Brown Oct 24 '12 at 15:46
show 2 more comments

closed as not a real question by Doc Brown, Walter, ChrisF Oct 24 '12 at 14:29

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

Browse other questions tagged or ask your own question.