Click here to Skip to main content
15,885,365 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Microsoft Visual Studio running problem. Pin
Richard MacCutchan1-Sep-14 6:56
mveRichard MacCutchan1-Sep-14 6:56 
GeneralRe: Microsoft Visual Studio running problem. Pin
hansoctantan1-Sep-14 7:01
professionalhansoctantan1-Sep-14 7:01 
AnswerRe: Microsoft Visual Studio running problem. Pin
Rob Philpott1-Sep-14 7:03
Rob Philpott1-Sep-14 7:03 
GeneralRe: Microsoft Visual Studio running problem. Pin
hansoctantan1-Sep-14 7:17
professionalhansoctantan1-Sep-14 7:17 
GeneralRe: Microsoft Visual Studio running problem. Pin
Dave Kreskowiak1-Sep-14 7:44
mveDave Kreskowiak1-Sep-14 7:44 
Questionprotecting vb.net dll Pin
Lakshmi Dhivya30-Aug-14 23:02
Lakshmi Dhivya30-Aug-14 23:02 
AnswerRe: protecting vb.net dll Pin
Kornfeld Eliyahu Peter31-Aug-14 0:15
professionalKornfeld Eliyahu Peter31-Aug-14 0:15 
QuestionWhy .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino30-Aug-14 5:07
Antonino Porcino30-Aug-14 5:07 
I'm struggling to understand the cause of the poor performances of the .NET virtual machine when compared to Java (JVM), DartVM or even JavaScript (V8) in this Raytracer demo.

In brief: I've written a ray tracer program in various languages: C#, Dart, TypeScript and Java, that I compile both for native virtual machines (CLR, JVM, DartVM) and browsers (thanks to JavaScript compilation).

Now when comparing them all, C# running natively is astonishingly slow. What Java calculates in 5 seconds, .NET takes 40 seconds, that is 8 times slower! 3x slower than Dart or JavaScript.

Not only, what is really embarrassing is that C# compiled to JavaScript and running in Chrome is 2.5x faster than native C#! How is it that possible?

I tried all possible compile switches but nothing seem to be able to cut the execution times.

Do you have some possible explanation? Is .NET really that slow?

If you like, please have a look at the Github repo and run the tests independently. There must be a flaw somewhere that I can't see. Please help me find it out.
AnswerRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Dave Kreskowiak30-Aug-14 6:10
mveDave Kreskowiak30-Aug-14 6:10 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino30-Aug-14 6:51
Antonino Porcino30-Aug-14 6:51 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Dave Kreskowiak30-Aug-14 6:53
mveDave Kreskowiak30-Aug-14 6:53 
AnswerRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen30-Aug-14 7:21
professionalEddy Vluggen30-Aug-14 7:21 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino30-Aug-14 8:36
Antonino Porcino30-Aug-14 8:36 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen31-Aug-14 2:08
professionalEddy Vluggen31-Aug-14 2:08 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino31-Aug-14 2:58
Antonino Porcino31-Aug-14 2:58 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen31-Aug-14 5:22
professionalEddy Vluggen31-Aug-14 5:22 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino31-Aug-14 6:37
Antonino Porcino31-Aug-14 6:37 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen31-Aug-14 6:51
professionalEddy Vluggen31-Aug-14 6:51 
AnswerRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Pete O'Hanlon30-Aug-14 11:41
mvePete O'Hanlon30-Aug-14 11:41 
AnswerRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Pete O'Hanlon31-Aug-14 7:43
mvePete O'Hanlon31-Aug-14 7:43 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino31-Aug-14 21:37
Antonino Porcino31-Aug-14 21:37 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen1-Sep-14 0:30
professionalEddy Vluggen1-Sep-14 0:30 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino1-Sep-14 2:20
Antonino Porcino1-Sep-14 2:20 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Eddy Vluggen1-Sep-14 7:40
professionalEddy Vluggen1-Sep-14 7:40 
GeneralRe: Why .NET CLR so slow compared to JVM or Dart or V8 ? Call for help Pin
Antonino Porcino1-Sep-14 8:49
Antonino Porcino1-Sep-14 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.