[Mono-bugs] [Bug 82365][Maj] Changed - WebClient Performance loss from 1.x to 2.x

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 14 19:40:12 EDT 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 mugenjouchan at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=82365

--- shadow/82365	2007-08-15 06:19:20.000000000 -0400
+++ shadow/82365.tmp.16852	2007-09-14 19:40:12.000000000 -0400
@@ -140,6 +140,44 @@
    1401  (wrapper managed-to-native)
 System.Threading.Monitor:Monitor_try_enter (object,int)TRUE:1
 
 
 ------- Additional Comments From robertj at gmx.net  2007-08-15 06:19 -------
 *** Bug 82393 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From mugenjouchan at gmail.com  2007-09-14 19:40 -------
+Another Testcase not using WebClient but NetworkStream more directly
+to see its deeper in there:
+
+-------------
+
+using System;
+using System.IO;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+
+public class App {
+	static public void Main() {
+		byte[] httpRequest = Encoding.ASCII.GetBytes(
+		"GET
+/sourceforge/phpmyadmin/phpMyAdmin-2.11.0-all-languages-utf-8-only.tar.bz2
+HTTP/1.1\n"
+		+"Host: ovh.dl.sourceforge.net\n\n");
+	
+	
+		TcpClient cli = new TcpClient();
+		cli.Connect("ovh.dl.sourceforge.net", 80);
+		NetworkStream str = cli.GetStream();
+		
+		str.Write(httpRequest, 0, httpRequest.Length);
+		
+		StreamReader sr = new StreamReader(str);
+		sr.ReadToEnd();
+	}
+}
+
+
+---------------
+
+For me, mono+gmcs is more than ten times slower (~700KiB/s vs
+~50KiB/s) as mcs for fast servers.


More information about the mono-bugs mailing list