??????????????????
???????????? ???????[ 2015/12/4 13:35:29 ] ??????????????? ???????
???????????????????
//??????????1
public class ComplexObject1 : ObjectBase
{
private byte[] data = new byte[1024];
public override void Init(params object[] paramList)
{
}
}
//??????????2
class ComplexObject2 : ObjectBase
{
private byte[] data = new byte[1024 * 1024];
public override void Init(params object[] paramList)
{
}
}
???????????
class Program
{
const int Count1 = 1000000;
const int Count2 = 500;
static void Main(string[] args)
{
var list1 = new List<ComplexObject1>(Count1 * 2);
var list2 = new List<ComplexObject2>(Count2 * 2);
CodeElapseChecker.Initialize();
ObjectPoolManager<ComplexObject1>.Instance.Init(Count1);
ObjectPoolManager<ComplexObject2>.Instance.Init(Count2);
CodeElapseChecker.Time("TestComplexObject1"?? () => { list1.Add(new ComplexObject1()); }?? Count1);
CodeElapseChecker.Time("TestPooledComplexObject1"?? () => { list1.Add(ObjectPoolManager<ComplexObject1>.Instance.NewObject()); }?? Count1);
CodeElapseChecker.Time("TestComplexObject2"?? () => { list2.Add(new ComplexObject2()); }?? Count2);
CodeElapseChecker.Time("TestPooledComplexObject2"?? () => { list2.Add(ObjectPoolManager<ComplexObject2>.Instance.NewObject()); }?? Count2);
Console.WriteLine(list1.Count);
Console.WriteLine(list2.Count);
}
}
???????в?????????????Release??X64????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??????????????????????????????????APP?????????????????????????????????????????SQL??????????????Щ????????????????????????????????????????????????????????????????????????Web????????????????????????????????????????????????????漰????????????????????????????????Java???????????Щ??????????????????????????????????????????????????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????