12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //using CommonLang;
- //using System;
- //using ZeusServerEdgeJS;
- //namespace ZeusServerEdgeJSTest
- //{
- // static class PerformenceTest
- // {
- // /// <summary>
- // /// 应用程序的主入口点。
- // /// </summary>
- // [STAThread]
- // static void Main()
- // {
- // int count = 100000;
-
- // EdgeJS edge = new EdgeJS();
- // // var input = new { };
- // var input = new { type = "UnitAxisAction", object_id = 3, dx8 = 10, dy8 = 10 };
- // //HashMap<String, Object> map = new HashMap<String, Object>();
- // //map["unitType"] = "UnitAxisAction";
- // //map["object_id"] = 3;
- // //map["dx8"] = 10;
- // //map["dy8"] = 10;
- // // ZoneService.instance().start("D:/nodejs/node_global/npm/node_modules/zeus-csharp/lib/dll", "D:/nodejs/node_global/npm/node_modules/zeus-csharp/data",10886);
- // int startTime = DateTime.Now.Millisecond;
- // for (int i = 0; i < count; ++i)
- // {
- // object obj = ZoneService.instance().createMoveAction(0,0,0);
- // // testMethod(i);
-
- // }
- // int totalUse = DateTime.Now.Millisecond - startTime;
- // Console.WriteLine("call countTotal:" + count + ",all use:" + totalUse + ",avg use:" + (double)(totalUse ) / count);
- // }
- // static int testMethod(int input)
- // {
- // return input * 2;
- // }
- // }
- //}
|