[Mono-bugs] [Bug 342190] New: [Performance] MS.NET 2.0 is twice faster as mono 1.2. 6 when compressing with SharpZipLib
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 16 09:04:26 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=342190
Summary: [Performance] MS.NET 2.0 is twice faster as mono 1.2.6
when compressing with SharpZipLib
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at ximian.com
ReportedBy: informatique.internet at fiducial.fr
QAContact: mono-bugs at ximian.com
Found By: ---
Try this program :
public static void TestSharpZip()
{
DateTime debut=DateTime.Now;
FileStream
fs=File.Open("/tmp/logquota.test",FileMode.Open);
GZipOutputStream gzoutput=new
GZipOutputStream(File.Create("logquotasharpzip.gz"));
gzoutput.SetLevel(5);
byte[] buffer=new byte[8191];
int len;
do{
len=fs.Read(buffer,0,buffer.Length);
if (len>0)
gzoutput.Write(buffer,0,len);
}while (len!=0);
gzoutput.Close();
fs.Close();
DateTime fin=DateTime.Now;
TimeSpan dure=fin-debut;
Console.WriteLine(dure);
}
Where /tmp/logquota.test is a ~150Mb text file
On MS.NET 2.0 it takes about 7s to compress the file (it takes about the same
on .NET 1.1)
On Mono 1.2.6 it takes about 16s to compress the file on the same machine
The difference is too big to ignore it...
I think it's important to keep an eye on performance...
Thanks for tracking this problem
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list