How is the current performance of the Mono virtual machine?

前端 未结 5 1541
一生所求
一生所求 2021-02-08 19:11

The web is full of different kinds of performance test of different languages, compilers, and virtual machines. Yet hardly any of these test the performance using some real-worl

5条回答
  •  借酒劲吻你
    2021-02-08 19:38

    While I haven't used Mono, I guess it depends on what you do with it. I can't give you exact numbers on things, but here's an interesting tidbit about Mono's floating point performance:

    http://forums.xna.com/forums/p/24249/24249.aspx

    As Mono allows the use of your CPU's SIMD instructions (SSE2 and SSE4 at the moment, I believe) to dramatically speed up floating point calculations, it can blow away .NET at this kind of thing (up to 10x faster), as the chart shows (and hopefully Microsoft will implement something similar soon, .NET 4.5, please?). However, the chart also shows that .NET is still significantly faster than Mono when not using Mono.Simd. And you could take a huge leap of faith and extrapolate that 20% difference in floating point performance to other areas, like string performance.

    However, that is Mono 2.2 and things may have changed drastically as Mono is moving quite fast these days, or so I hear.

提交回复
热议问题