Performance of ASP.NET in Mono(Linux) vs IIS(Window)

前端 未结 6 2083
天涯浪人
天涯浪人 2021-01-01 17:54

Is there any performance different between hosting your asp.net in mono on linux and iis on window server?

6条回答
  •  独厮守ぢ
    2021-01-01 18:41

    Mono sucks!

    • http://art-blog.no-ip.info/cppcms/blog/post/27
    • http://www.phpvs.net/2008/02/08/benchmarking-mono-aspnet-vs-php-a-slight-problem/

    Or more politically correct: Mono is not yet ready for prime time at least for Asp.Net web applications:

    • No support of caching
    • Performance is terribly unstable and dropping after application start.

    EDIT: Added quotes for my post, answer to latest comment.

    However, in order to make fair comparison ... I should enable caching ... adding following line at the header of aspx file should help me.

    <%@ OutputCache Duration="20" VaryByParam="None" %>
    

    I'd done it — no result! The performance is the same.

    Note: after deeper check, the implementation of cache in modo is very limited and poor, after recent checks it still holds in newer versions of mono.

    Ok, anyway I did some benchmarks(...)simple clock gives me about 750 pages per second for cached variant and 650 for non cached one. The tests were done under IIS 5.0 on Dual Core Pentium D 3G

    The same code ... with mod_mono (under Signle Core AMD Athlon 3000) had given me:

    • 350 pages per second.
    • Next run had given 300.
    • next 200
    • and next 150

    So, benchmarking is impossible.

    Does referring to post is still not augmentative?

    No mono is definitely not ready for prime-time.

提交回复
热议问题