How to compare performance of two pieces of codes

前端 未结 7 1388
春和景丽
春和景丽 2020-12-29 11:25

I have a friendly competition with couple of guys in the field of programming and recently we have become so interested in writing efficient code. Our challenge was to try t

7条回答
  •  隐瞒了意图╮
    2020-12-29 12:01

    There are pieces of software called profilers which exactly do what you want.

    An example for Windows is AMD code analyser and gprof for POSIX.

提交回复
热议问题