本文章为本人个人博客相应文章的镜像:
原文地址: http://www.greatony.com/index.php/2010/02/14/speed-of-object-creation-in-dotnet-ii/
OK,大家已经看到前面的文章了,本来说是第二天就发这篇文章的,但后来因为返回老家的原因,没有发成,特此补发。
测试环境:
- Lenovo ThinkPad T61
- CPU: Intel T7500
- Mem: 2GB
- Os: Windows Vista Ultimate (x86) sp1
测试内容:
创建100万个对象。
测试方式:
1 for(var i = 0; i < 1000000; i++)
2 // create the instance
2 // create the instance