Skip to content

Instantly share code, notes, and snippets.

@Nihlus
Created April 14, 2018 14:55
Show Gist options
  • Save Nihlus/d8424b47828c28653ec3ead2d0f66e6e to your computer and use it in GitHub Desktop.
Save Nihlus/d8424b47828c28653ec3ead2d0f66e6e to your computer and use it in GitHub Desktop.
BenchmarkDotNet=v0.10.14, OS=linuxmint 18.3
Intel Core i7-4790K CPU 4.00GHz (Haswell), 1 CPU, 8 logical and 4 physical cores
[Host] : Mono 5.10.1.42 (tarball Wed), 64bit
Mono : Mono 5.10.1.42 (tarball Wed), 64bit
Method | Mean | Error | StdDev |
------------------------------------- |-------------:|-----------:|-----------:|
CalliByRef | 8.774 ns | 0.1943 ns | 0.1723 ns |
DllImportByRef | 10.844 ns | 0.0133 ns | 0.0125 ns |
ManagedByRef | 12.922 ns | 0.1052 ns | 0.0984 ns |
DelegatesWithoutDisposeChecksByRef | 948.430 ns | 17.7136 ns | 17.3971 ns |
DelegatesByRef | 958.051 ns | 2.0486 ns | 1.7106 ns |
CalliByValue | 21.163 ns | 0.0866 ns | 0.0768 ns |
DllImportByValue | 21.991 ns | 0.2201 ns | 0.2058 ns |
ManagedByValue | 22.528 ns | 0.0371 ns | 0.0347 ns |
DelegatesWithoutDisposeChecksByValue | 1,215.534 ns | 4.5346 ns | 3.7866 ns |
DelegatesByValue | 1,228.969 ns | 9.6864 ns | 8.0886 ns |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment