[Mono-bugs] [Bug 421807] New: Performance of is/isinst

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Aug 31 12:32:49 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=421807


           Summary: Performance of is/isinst
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I came across this http://blogs.msdn.com/vancem/archive/2006/10/01/779503.aspx
NET test and here my results after increasing default count to 10000000

NET

Data units of msec resolution = 0.000501 usec
10 typeof(string)                       : count: 10000000  491.758 +- 6%   
msec
10 typeof(string).TypeHandle            : count: 10000000   61.466 +- 4%   
msec
10 anObj.GetType() == type              : count: 10000000  724.533 +- 6%   
msec
10 Type.GetTypeHandle(obj).Equals(tHnd) : count: 10000000 1039.067 +- 4%   
msec
10 anObj.GetType() == typeof(string)    : count: 10000000   95.086 +- 5%   
msec
10 (anObj is string)                    : count: 10000000  194.315 +- 3%   
msec

Mono

Data units of msec resolution = 0.100000 usec
10 typeof(string)                       : count: 10000000   77.696 +- 1%   
msec
10 typeof(string).TypeHandle            : count: 10000000  637.205 +- 0%   
msec
10 anObj.GetType() == type              : count: 10000000  249.867 +- 2%   
msec
10 Type.GetTypeHandle(obj).Equals(tHnd) : count: 10000000 2832.366 +- 3%   
msec
10 anObj.GetType() == typeof(string)    : count: 10000000  193.876 +- 1%   
msec
10 (anObj is string)                    : count: 10000000  464.899 +- 1%   
msec

The only worry for me is the last test where we could really be faster.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list