|
-
Apr 10th, 2010, 04:08 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Mono 2.6.3 and performance
Recently, I wanted to run a Visual Basic application under Mono. The application itself has to do mainly with cryptography and involves a lot of DES operations, byte crunching/converting, TCP/IP but not much more and no disk I/O. The core functionality is implemented in a DLL and is wrapped around a simple Winforms project with a few options. My initial goal was to take everything needed to run the GUI, copy it to a Linux distro and have it run under Mono without performing any compilation under Linux.
I quickly discovered that I had to target Mono 2.6 in order to reach my goal, so I aimed for openSUSE 11.2 with Mono 2.6.3. Initially, my efforts failed because calls to the VB namespace were returning incorrect results. I had to replace a lot of CType, CInt, CBool, CByte, CLng, Asc, Chr method calls with calls to various classes of the System namespace. After some work at that, I was able to run the GUI application under openSUSE successfully. A few errors still remain but I have worked around those.
What striked me was the performance of the application under Mono. I have a way to stress-test my application. I fired it up and started to stress-test the application under Mono. Normally, the GUI application shows status messages and informs the user about what is happening. When the status messages where displayed, the application performed pitifully under openSUSE. Once the status messages were disabled, the application worked faster under openSUSE than under Windows. I was running openSUSE under VMWare and the stress test application in the Windows VM host. The GUI application took 59 seconds to finish when running in the Windows VM host but only 46 seconds when running in the openSUSE virtual machine. In both cases, the stress test executes the same commands serially (single thread) and screen output was turned off.
That strikes me as a bit odd. I've heard before that Winforms projects under Mono perform poorly but my experience seems to suggest that server-based applications perform better under Mono than under Windows. The ported application doesn't use anything like WCF, Remoting (and thus serialization) so I don't know how Mono fares on those. Still, these results caught me by surprise - I was just curious about the performance of Mono when I started the stress test but now I keep wondering how is that performance difference possible.
I just wanted to hear about other people with experience on Mono, specifically about performance of server applications.
-
Apr 16th, 2010, 07:12 AM
#2
Thread Starter
Frenzied Member
Re: Mono 2.6.3 and performance
Well, I guess that I must be one of the very few people interested in Mono...
-
Apr 20th, 2010, 01:40 AM
#3
Re: Mono 2.6.3 and performance
Hey,
I think it is fair to say that there aren't mainly people on this forum interested in Mono, but in general, it has quite a following.
I have Mono 2.6.1 installed on my server, for running my web site, but I haven't yet installed 2.6.3, but I will, since there are some bugs in 2.6.1. that I need to get fixed.
I haven't used Mono for anything other than web sites though, so can't really be of much help, sorry.
Gary
-
Apr 20th, 2010, 01:57 AM
#4
Thread Starter
Frenzied Member
Re: Mono 2.6.3 and performance
What would then be an appropriate forum to post this Gary?
-
Apr 20th, 2010, 01:59 AM
#5
Re: Mono 2.6.3 and performance
Hey,
I think you might have more luck posting for at the Mono Forums:
http://go-mono.com/forums/
They are quite active, and you get the benefit of the main developers contributing to the forum.
Gary
-
Apr 20th, 2010, 02:27 AM
#6
Thread Starter
Frenzied Member
Re: Mono 2.6.3 and performance
Oh, I thought you were referring to another forum within VBForums! I may try that, thanks for the lead Gary.
-
Apr 21st, 2010, 04:35 AM
#7
Thread Starter
Frenzied Member
Re: Mono 2.6.3 and performance
Gary, I just wanted to thank you for your great pointer. The people at the Mono forums are being very helpful indeed.
-
Apr 21st, 2010, 05:07 AM
#8
Re: [RESOLVED] Mono 2.6.3 and performance
Hey,
Not a problem at all. I have found them to be very helpful in the past as well.
What was the outcome of your question by the way? Can you link to your post in that forum?
Gary
-
Apr 21st, 2010, 07:15 AM
#9
Thread Starter
Frenzied Member
Re: [RESOLVED] Mono 2.6.3 and performance
Here's the related link. The verdict is that Mono may perform some optimizations better than .Net and I shouldn't sweat this at all. What's most important for me is that I got a glimpse of devs that are actively supporting VB under Mono. Since I came across several VB-related issues, I feared that Mono is good only if you're using C# but it turns out that this is not the case.
-
Apr 22nd, 2010, 02:00 PM
#10
Re: [RESOLVED] Mono 2.6.3 and performance
I'm interested in using ASP.NET on Ubuntu but haven't started it yet. This could be interesting though, now that I know you've tried it
-
Apr 22nd, 2010, 06:22 PM
#11
Frenzied Member
Re: [RESOLVED] Mono 2.6.3 and performance
I'm also being dragged into the mono scene by penagate. Ive been doing some digging and it seems that they may be implementing wpf or at least testing it under the code name olive.
-
Apr 26th, 2010, 01:35 AM
#12
Re: [RESOLVED] Mono 2.6.3 and performance
Hey,
Yeah, the Olive project has been on the go for a while, but I haven't played with it yet, mainly because my Linux system doesn't actually have a UI, just a web interface 
Mend, have you found any pre-cooked RPM's for Ubuntu, or were you planning on compiling from source. I wouldn't use version 2.6.1, which is the version I currently have installed, there are quite a few issues with it with regard to ASP.Net, use the latest 2.6.3, which claims to have fixed them, although I haven't tested it out yet.
Gary
-
Apr 26th, 2010, 06:37 AM
#13
Thread Starter
Frenzied Member
Re: [RESOLVED] Mono 2.6.3 and performance
If you want to use 2.6.3, you can't use it on Ubuntu - isn't that right Gary?
-
Apr 26th, 2010, 06:40 AM
#14
Re: [RESOLVED] Mono 2.6.3 and performance
Hey,
I don't know if "can't" is the right term. You won't get any ready to installed compiled versions, like you do for OpenSuse, but there is nothing to stop you taking the source code and compiling it yourself, that is what I did on my RedHat box.
Gary
-
Apr 26th, 2010, 07:18 AM
#15
Thread Starter
Frenzied Member
Re: [RESOLVED] Mono 2.6.3 and performance
Right. I've read somewhere that Mono is considered a core package for Ubuntu so upgrades to newer Mono versions tend to be slow to roll out officially.
-
Apr 26th, 2010, 07:55 AM
#16
Re: [RESOLVED] Mono 2.6.3 and performance
Yeah, that sounds about right. A couple shell commands though, and you can have the most up to date one.
Gary
-
Apr 29th, 2010, 03:06 PM
#17
Thread Starter
Frenzied Member
Re: [RESOLVED] Mono 2.6.3 and performance
Just an update for those interested, the guys at Mono fixed the problem I reported - not directly related to my original post but it's nice to see that they fix reproducible problems fairly quickly.
-
Apr 30th, 2010, 01:47 AM
#18
Re: [RESOLVED] Mono 2.6.3 and performance
Hey,
I noticed that there was a new version released, 2.6.4, but I haven't played with it yet.
Yeah, they are normally quite good at responding to bugs, and issuing fixes.
Gary
-
May 5th, 2010, 02:05 PM
#19
Re: [RESOLVED] Mono 2.6.3 and performance
What surprises me a bit is that in (at least) the latest versions of Ubuntu, especially 10.04, quite a few apps have been created in Mono. I didn't realize it was that popular. Whereas on FC9, I had struggled to get mono running. I also tried developing with Mono in C# and it's... well, I could write a thread about it, but the summary is that it's always going to be a generation behind .NET, understandably so. It would be nice if Mono were worked on by MS, which is one of the things that their new open source 'evangelist' could do... but ah well.
-
May 6th, 2010, 01:19 AM
#20
Re: [RESOLVED] Mono 2.6.3 and performance
Hey,
As far as I was aware, Microsoft are working with Novell, and they are contributing source to the Mono Project.
You are right though, they will always be one step behind, but I think that step will gradually get smaller, and smaller.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|