Skip to content

Instantly share code, notes, and snippets.

@adamsitnik
Created May 4, 2016 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamsitnik/ee45f2d90464642e3fa344d42468bb58 to your computer and use it in GitHub Desktop.
Save adamsitnik/ee45f2d90464642e3fa344d42468bb58 to your computer and use it in GitHub Desktop.
My results
BenchmarkDotNet=v0.9.5.0
OS=Microsoft Windows NT 6.2.9200.0
Processor=Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz, ProcessorCount=8
Frequency=10000000 ticks, Resolution=100.0000 ns, Timer=HPET
HostCLR=MS.NET 4.0.30319.42000, Arch=64-bit RELEASE [RyuJIT]
JitModules=clrjit-v4.6.1055.0

Type=CompareAlgo  Mode=Throughput  Platform=X64  
Jit=RyuJit  
                 Method | Size |        Median |      StdDev | Scaled |

--------------------------- |----- |-------------- |------------ |------- | CompareCurrent | 8 | 15.1180 ns | 1.8482 ns | 1.00 | CompareBranchlessInnerSimd | 8 | 17.3259 ns | 1.3847 ns | 1.15 | CompareBranchlessSimd | 8 | 22.4084 ns | 1.0569 ns | 1.48 | CompareBaseTailSimd | 8 | 19.3769 ns | 1.4001 ns | 1.28 | CompareLongTailSimd | 8 | 19.3181 ns | 1.8007 ns | 1.28 | CompareNaiveSimd | 8 | 16.3162 ns | 1.2544 ns | 1.08 | CompareCurrent | 16 | 16.5575 ns | 1.2798 ns | 1.00 | CompareBranchlessInnerSimd | 16 | 39.2973 ns | 3.5147 ns | 2.37 | CompareBranchlessSimd | 16 | 40.3488 ns | 2.7310 ns | 2.44 | CompareBaseTailSimd | 16 | 35.7829 ns | 4.0619 ns | 2.16 | CompareLongTailSimd | 16 | 22.4477 ns | 2.4683 ns | 1.36 | CompareNaiveSimd | 16 | 32.4986 ns | 3.5635 ns | 1.96 | CompareCurrent | 17 | 16.3338 ns | 1.2353 ns | 1.00 | CompareBranchlessInnerSimd | 17 | 40.1118 ns | 5.3116 ns | 2.46 | CompareBranchlessSimd | 17 | 41.1875 ns | 6.5617 ns | 2.52 | CompareBaseTailSimd | 17 | 35.2745 ns | 3.6633 ns | 2.16 | CompareLongTailSimd | 17 | 21.9806 ns | 2.2665 ns | 1.35 | CompareNaiveSimd | 17 | 33.5260 ns | 3.5969 ns | 2.05 | CompareCurrent | 32 | 23.1179 ns | 2.4649 ns | 1.00 | CompareBranchlessInnerSimd | 32 | 44.8199 ns | 5.5417 ns | 1.94 | CompareBranchlessSimd | 32 | 41.3343 ns | 4.5039 ns | 1.79 | CompareBaseTailSimd | 32 | 34.1747 ns | 3.1339 ns | 1.48 | CompareLongTailSimd | 32 | 22.4642 ns | 2.3314 ns | 0.97 | CompareNaiveSimd | 32 | 28.5646 ns | 2.5881 ns | 1.24 | CompareCurrent | 33 | 21.9293 ns | 2.2010 ns | 1.00 | CompareBranchlessInnerSimd | 33 | 42.6018 ns | 5.6083 ns | 1.94 | CompareBranchlessSimd | 33 | 43.5763 ns | 6.1914 ns | 1.99 | CompareBaseTailSimd | 33 | 32.3781 ns | 3.7119 ns | 1.48 | CompareLongTailSimd | 33 | 24.7821 ns | 3.4151 ns | 1.13 | CompareNaiveSimd | 33 | 28.6131 ns | 3.3053 ns | 1.30 | CompareCurrent | 64 | 29.4876 ns | 2.2715 ns | 1.00 | CompareBranchlessInnerSimd | 64 | 47.9387 ns | 5.7412 ns | 1.63 | CompareBranchlessSimd | 64 | 47.1442 ns | 2.7828 ns | 1.60 | CompareBaseTailSimd | 64 | 38.3387 ns | 4.1663 ns | 1.30 | CompareLongTailSimd | 64 | 28.8131 ns | 3.5273 ns | 0.98 | CompareNaiveSimd | 64 | 33.0499 ns | 3.3374 ns | 1.12 | CompareCurrent | 128 | 54.5145 ns | 4.7038 ns | 1.00 | CompareBranchlessInnerSimd | 128 | 62.0511 ns | 10.3191 ns | 1.14 | CompareBranchlessSimd | 128 | 62.0892 ns | 6.1236 ns | 1.14 | CompareBaseTailSimd | 128 | 52.5905 ns | 7.4651 ns | 0.96 | CompareLongTailSimd | 128 | 44.8666 ns | 7.1741 ns | 0.82 | CompareNaiveSimd | 128 | 46.8768 ns | 5.9576 ns | 0.86 | CompareCurrent | 256 | 105.0225 ns | 4.1012 ns | 1.00 | CompareBranchlessInnerSimd | 256 | 102.5127 ns | 12.4150 ns | 0.98 | CompareBranchlessSimd | 256 | 86.2031 ns | 6.2125 ns | 0.82 | CompareBaseTailSimd | 256 | 79.6157 ns | 9.2035 ns | 0.76 | CompareLongTailSimd | 256 | 103.0525 ns | 4.4040 ns | 0.98 | CompareNaiveSimd | 256 | 99.4127 ns | 6.9632 ns | 0.95 | CompareCurrent | 512 | 158.7231 ns | 7.4892 ns | 1.00 | CompareBranchlessInnerSimd | 512 | 156.5016 ns | 21.1863 ns | 0.99 | CompareBranchlessSimd | 512 | 132.0040 ns | 20.9029 ns | 0.83 | CompareBaseTailSimd | 512 | 133.2014 ns | 6.5047 ns | 0.84 | CompareLongTailSimd | 512 | 140.9526 ns | 13.5156 ns | 0.89 | CompareNaiveSimd | 512 | 130.6657 ns | 9.4061 ns | 0.82 | CompareCurrent | 1024 | 286.6799 ns | 16.4597 ns | 1.00 | CompareBranchlessInnerSimd | 1024 | 266.2717 ns | 35.7661 ns | 0.93 | CompareBranchlessSimd | 1024 | 242.9787 ns | 29.7709 ns | 0.85 | CompareBaseTailSimd | 1024 | 232.6195 ns | 16.6666 ns | 0.81 | CompareLongTailSimd | 1024 | 234.1124 ns | 27.4395 ns | 0.82 | CompareNaiveSimd | 1024 | 229.0381 ns | 8.9114 ns | 0.80 | CompareCurrent | 2048 | 623.3545 ns | 36.6108 ns | 1.00 | CompareBranchlessInnerSimd | 2048 | 512.0397 ns | 66.3192 ns | 0.82 | CompareBranchlessSimd | 2048 | 504.7737 ns | 44.1447 ns | 0.81 | CompareBaseTailSimd | 2048 | 469.7983 ns | 38.2158 ns | 0.75 | CompareLongTailSimd | 2048 | 509.4260 ns | 65.3093 ns | 0.82 | CompareNaiveSimd | 2048 | 508.2650 ns | 72.9286 ns | 0.82 | CompareCurrent | 4096 | 1,032.3416 ns | 78.7901 ns | 1.00 | CompareBranchlessInnerSimd | 4096 | 900.2769 ns | 132.4128 ns | 0.87 | CompareBranchlessSimd | 4096 | 854.0715 ns | 96.4412 ns | 0.83 | CompareBaseTailSimd | 4096 | 785.3397 ns | 57.0892 ns | 0.76 | CompareLongTailSimd | 4096 | 847.7623 ns | 98.0274 ns | 0.82 | CompareNaiveSimd | 4096 | 788.1768 ns | 74.4618 ns | 0.76 |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment