C# vs C - Big performance difference

前端 未结 13 606
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 01:39

I\'m finding massive performance differences between similar code in C anc C#.

The C code is:

#include 
#include 
#inclu         


        
13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 02:41

    Whatever the time diff. may be, that "elapsed time" is invalid. It would only be a valid one if you can guarantee that both programs run under the exact same conditions.

    Maybe you should try a win. equivalent to $/usr/bin/time my_cprog;/usr/bin/time my_csprog

提交回复
热议问题