A benchmark project is provided with the source of FastReflectionLib. Here's part of the results (the benchmarks were run on my laptop with release build):

Execute the following method 1,000,000 times:

public class Test
    public void MethodWithArgs(int a1, string a2) { }

The way to excute Time elapsed (in second)
Directly invoke 0.0071397
Build-in reflection 1.4936181
MethodInvoker.Invoke 0.0468326
FastInvoke 0.1373712

Last edited Jan 26, 2009 at 1:39 PM by jeffz, version 1


No comments yet.