[Mono-bugs] [Bug 75451][Wis] New - Bad performance of Mono on
nested loops ( vs MS .NET)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jul 3 06:58:34 EDT 2005
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 yury at serdyuk.botik.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=75451
--- shadow/75451 2005-07-03 06:58:34.000000000 -0400
+++ shadow/75451.tmp.13756 2005-07-03 06:58:34.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 75451
+Product: Mono: Compilers
+Version: 1.0
+OS: Red Hat 9.0
+OS Details: Linux skif 2.4.27 #1 SMP Thu Apr 14 15:25:11 MSD 2005 i686 athlon i386 GNU/Linux
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: Yury at serdyuk.botik.ru
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bad performance of Mono on nested loops ( vs MS .NET)
+
+Description of Problem: Bad performance of Mono on nested loops in
+comparison with MS .NET
+
+
+Steps to reproduce the problem:
+
+Test example :
+
+using System;
+
+public class NestedLoops {
+
+ public static void Main ( string[] args ) {
+
+ int i = 0;
+
+ int t1 = Environment.TickCount;
+
+ for ( int i1 = 0; i1 < 1000; i1++ )
+
+ for ( int i2 = 0; i2 < 1000; i2++ )
+
+ for ( int i3 = 0; i3 < 1000; i3++ ) {
+
+ i++;
+
+ }
+
+ int t2 = Environment.TickCount;
+
+ Console.WriteLine ( ( t2 - t1) + " ticks" );
+
+ }
+
+}
+1. > mcs NestedLoops.cs
+2. > mono NestedLoops.exe
+
+Actual Results:
+
+I got typically
+[serdyuk at skif alcmd]$ mono NestedLoops.exe
+2049 ticks
+
+on AMD Athlon MP 2000+ ( Mono 1.1.8.1 )
+
+but I have
+>NestedLoops
+1453 ticks
+
+on AMD XP 1600+ under .NET 1.1.4322
More information about the mono-bugs
mailing list