C语言解释器-23 性能初步评估

来源:互联网 发布:linux系统网络日志 编辑:程序博客网 时间:2024/06/11 05:36

运行的机器配置:

配置


以上篇的递归调用为例,运行之,屏蔽掉Log,在Debug模式下的速度性能大致为432.8秒,约7分钟。

================================ Program Begin ================================The thread 'vshost.RunParkingWindow' (0x1764) has exited with code 0 (0x0).The thread '<No Name>' (0x20c8) has exited with code 0 (0x0).================================ Program End ================================Time consumption: 432.8529312 sec

再看看内存消耗,峰值为274M:

内存消耗


Release版本的速度大致为Debug模式的1/4:

Release 结果

原创粉丝点击