Skip to content

Instantly share code, notes, and snippets.

@vexx32
Last active October 8, 2018 01:32
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 vexx32/852cd1d0ddc3e1a93f77b90ab23cfe3d to your computer and use it in GitHub Desktop.
Save vexx32/852cd1d0ddc3e1a93f77b90ab23cfe3d to your computer and use it in GitHub Desktop.
              Method |                 data |      Mean |     Error |     StdDev |  Gen 0 | Allocated |
=------------------- |--------------------- |----------:|----------:|-----------:|-------:|----------:|
+   ParseWithConvert | 10001(...)10101 [62] | 434.53 ns | 8.4710 ns | 11.8752 ns | 0.1163 |     184 B |
+parseBinaryForLoops | 10001(...)10101 [62] | 185.21 ns | 3.7130 ns |  5.5575 ns | 0.0405 |      64 B |
+  BigEndianAddition | 10001(...)10101 [62] | 131.59 ns | 2.6733 ns |  6.4563 ns | 0.0405 |      64 B |
+  BigEndianBinaryOr | 10001(...)10101 [62] | 125.25 ns | 2.5077 ns |  3.5154 ns | 0.0405 |      64 B |
=------------------- |--------------------- |----------:|----------:|-----------:|-------:|----------:|
-   ParseWithConvert |      100101010110100 | 149.27 ns | 2.9268 ns |  3.3706 ns | 0.0355 |      56 B |
-parseBinaryForLoops |      100101010110100 |  66.97 ns | 1.3877 ns |  2.1192 ns | 0.0203 |      32 B |
-  BigEndianAddition |      100101010110100 |  55.02 ns | 0.5391 ns |  0.5043 ns | 0.0203 |      32 B |
-  BigEndianBinaryOr |      100101010110100 |  56.12 ns | 0.9928 ns |  0.7751 ns | 0.0203 |      32 B |
=------------------- |--------------------- |----------:|----------:|-----------:|-------:|----------:|
+   ParseWithConvert |                10100 |  92.51 ns | 1.8034 ns |  1.5986 ns | 0.0254 |      40 B |
+parseBinaryForLoops |                10100 |  47.68 ns | 0.8568 ns |  0.7595 ns | 0.0203 |      32 B |
+  BigEndianAddition |                10100 |  44.67 ns | 0.7466 ns |  0.6984 ns | 0.0203 |      32 B |
+  BigEndianBinaryOr |                10100 |  43.84 ns | 0.8622 ns |  0.7200 ns | 0.0203 |      32 B |
=------------------- |--------------------- |----------:|----------:|-----------:|-------:|----------:|
-   ParseWithConvert |          10101010111 | 126.41 ns | 2.5250 ns |  2.7017 ns | 0.0303 |      48 B |
-parseBinaryForLoops |          10101010111 |  58.98 ns | 0.9512 ns |  0.8897 ns | 0.0203 |      32 B |
-  BigEndianAddition |          10101010111 |  50.51 ns | 1.0227 ns |  0.9567 ns | 0.0203 |      32 B |
-  BigEndianBinaryOr |          10101010111 |  50.08 ns | 0.8886 ns |  0.7877 ns | 0.0203 |      32 B |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment