Why does C# execute Math.Sqrt() more slowly than VB.NET?

后端 未结 6 1563
情深已故
情深已故 2020-12-14 05:45

Background

While running benchmark tests this morning, my colleagues and I discovered some strange things concerning performance of C# code vs. VB.NET code.

6条回答
  •  醉话见心
    2020-12-14 06:23

    Generally no. They both compile to CLR (Common Language Runtime) byte-code. This is similar to a JVM (Java Virtual Machine).

提交回复
热议问题