[Mono-bugs] [Bug 80541][Nor] New - [PERFORMACE] Array initializer
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 17 19:21:30 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by marek.safar at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=80541
--- shadow/80541 2007-01-17 19:21:30.000000000 -0500
+++ shadow/80541.tmp.11869 2007-01-17 19:21:30.000000000 -0500
@@ -0,0 +1,77 @@
+Bug#: 80541
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: GC
+AssignedTo: lupus at ximian.com
+ReportedBy: marek.safar at seznam.cz
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PERFORMACE] Array initializer
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+I have made some performance testing after latest updates
+in this array and performance was definitely improved.
+However, it looks like we are still missing some GC tricks
+which can still speed up the process .
+
+
+Steps to reproduce the problem:
+1. mini benchmark
+
+using System;
+
+class T
+{
+ static void Test ()
+ {
+ long [] a1 = new long [6] { 0, 1, 2, 3, 4, 5 };
+ }
+
+ public static void Main ()
+ {
+ DateTime s = DateTime.Now;
+ for (int i=0; i < 10000000; ++i)
+ Test ();
+
+ Console.WriteLine (DateTime.Now - s);
+ }
+}
+
+Actual Results:
+
+Compiler Runtime Time
+MCS MS 03.7187500
+MCS Mono 02.5150000
+CSC MS 00.6718750
+CSC Mono 02.5780000
+
+What is interesting on the figures is that CSC+MS pair
+is 4x faster than MCS+Mono pair. But same program compiled
+by MCS does get that boost on MS runtime.
+
+There is almost no IL difference between program compiled
+by MCS and CSC except that CSC produces static initializer
+with name decorated with size of array.
+
+But I am not sure whether they can trigger some GC optimization
+based on a class name or I am missing some other trick.
+
+Expected Results:
+
+Better performance.
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list