Extension methods benchmarked. Slower alternatives replaced.
This commit is contained in:
1 parent
9becb8df67
commit
6e99ee39e3
40 files changed
+930
-1026
No files matched your search
@@ -17,7 +17,11 @@ public class Mod7UInt128Benchmarks
|
||||
return (ulong)(Value % 7UL);
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
/// <summary>
|
||||
/// Fastest
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Benchmark]
|
||||
public ulong ExtensionMethod()
|
||||
{
|
||||
return Value.Mod7();
|
||||
|
||||
Reference in new issue
Block a user