diff Assets/Application/Scripts/Test/GetComponentTest.cs @ 12:b55d586dd4eb

change bind from fmap.
author Kazuma Takeda
date Tue, 07 Feb 2017 20:48:57 +0900
parents 599bd8ddb72b
children
line wrap: on
line diff
--- a/Assets/Application/Scripts/Test/GetComponentTest.cs	Sat Jan 28 19:15:44 2017 +0900
+++ b/Assets/Application/Scripts/Test/GetComponentTest.cs	Tue Feb 07 20:48:57 2017 +0900
@@ -28,29 +28,29 @@
 			st.Stop ();
 			total_as += st.Elapsed.TotalMilliseconds;
 
-//			Stopwatch st = new Stopwatch ();
-//			st.Start ();
-//			for (int i = 0; i < 10000; i++) {
-//				GameObject obj = Resources.Load<GameObject> ("Prefabs/Box/Wood");
-//			}
-//			st.Stop ();
-//			total_generic += st.Elapsed.TotalMilliseconds;
+			st = new Stopwatch ();
+			st.Start ();
+			for (int i = 0; i < 10000; i++) {
+				GameObject obj = Resources.Load<GameObject> ("Prefabs/Box/Wood");
+			}
+			st.Stop ();
+			total_generic += st.Elapsed.TotalMilliseconds;
 
-//			Stopwatch st = new Stopwatch ();
-//			st.Start ();
-//			for (int i = 0; i < 10000; i++) {
-//				GameObject obj = (GameObject) Resources.Load ("Prefabs/Box/Wood");
-//			}
-//			st.Stop ();
-//			total_basic += st.Elapsed.TotalMilliseconds;
-//
-//			Stopwatch st = new Stopwatch ();
-//			st.Start ();
-//			for (int i = 0; i < 10000; i++) {
-//				GameObject obj = (GameObject) Resources.Load ("Prefabs/Box/Wood", typeof(GameObject));
-//			}
-//			st.Stop ();
-//			total_basic_typeof += st.Elapsed.TotalMilliseconds;
+			st = new Stopwatch ();
+			st.Start ();
+			for (int i = 0; i < 10000; i++) {
+				GameObject obj = (GameObject) Resources.Load ("Prefabs/Box/Wood");
+			}
+			st.Stop ();
+			total_basic += st.Elapsed.TotalMilliseconds;
+
+			st = new Stopwatch ();
+			st.Start ();
+			for (int i = 0; i < 10000; i++) {
+				GameObject obj = (GameObject) Resources.Load ("Prefabs/Box/Wood", typeof(GameObject));
+			}
+			st.Stop ();
+			total_basic_typeof += st.Elapsed.TotalMilliseconds;
 		}
 
 		print ("as average : " + total_as / (double)times + "ms");