Skip to content

Instantly share code, notes, and snippets.

@NickCraver
Last active April 9, 2017 22:30
Show Gist options
  • Save NickCraver/d6194b6c0c41a29d410b542531eaa136 to your computer and use it in GitHub Desktop.
Save NickCraver/d6194b6c0c41a29d410b542531eaa136 to your computer and use it in GitHub Desktop.
MiniProfiler JSON Benchmarks
BenchmarkDotNet=v0.10.3.0, OS=Microsoft Windows NT 6.2.9200.0
Processor=Intel(R) Core(TM) i7-4850HQ CPU 2.30GHz, ProcessorCount=3
Frequency=10000000 Hz, Resolution=100.0000 ns, Timer=UNKNOWN
  [Host] : Clr 4.0.30319.42000, 64bit RyuJIT-v4.6.1590.0
  Clr    : Clr 4.0.30319.42000, 64bit RyuJIT-v4.6.1590.0
  Core   : .NET Core 4.6.25009.03, 64bit RyuJIT
 |                                             Method |  Job | Runtime |           Mean |      StdErr |      StdDev |     Gen 0 |    Gen 1 |    Gen 2 | Allocated |
 |--------------------------------------------------- |----- |-------- |--------------- |------------ |------------ |---------- |--------- |--------- |---------- |
 |       'Serialize: Simple MiniProfiler (.ToJson())' |  Clr |     Clr |      4.6466 us |   0.0221 us |   0.0857 us |    0.3438 |        - |        - |   3.36 kB |
 |      'Serialize: Simple MiniProfiler (Newtonsoft)' |  Clr |     Clr |      4.6318 us |   0.0353 us |   0.1368 us |    0.3520 |        - |        - |   3.36 kB |
 |             'Serialize: Simple MiniProfiler (Jil)' |  Clr |     Clr |      2.2550 us |   0.0092 us |   0.0331 us |    0.3393 |        - |        - |   2.78 kB |
 |    'Serialize: Simple MiniProfiler (ServiceStack)' |  Clr |     Clr |      5.4310 us |   0.0416 us |   0.1612 us |    0.1190 |        - |        - |    1.9 kB |
 |      'Serialize: Complex MiniProfiler (.ToJson())' |  Clr |     Clr |  5,736.2537 us |  24.4020 us |  87.9825 us |  335.4167 | 226.0417 |  82.2917 |   2.38 MB |
 |     'Serialize: Complex MiniProfiler (Newtonsoft)' |  Clr |     Clr |  5,762.5052 us |  27.7799 us | 107.5911 us |  322.9167 | 213.5417 |  66.6667 |   2.38 MB |
 |            'Serialize: Complex MiniProfiler (Jil)' |  Clr |     Clr |  4,117.4340 us |  24.4325 us |  94.6267 us |  479.1667 | 368.7500 | 119.7917 |   3.73 MB |
 |   'Serialize: Complex MiniProfiler (ServiceStack)' |  Clr |     Clr |  4,609.5842 us |  43.6158 us | 179.8327 us |   85.4167 |        - |        - |   1.24 MB |
 |   'Deserialize: Simple MiniProfiler (.FromJson())' |  Clr |     Clr |     10.6147 us |   0.0488 us |   0.1692 us |    0.5371 |        - |        - |   5.43 kB |
 |    'Deserialize: Simple MiniProfiler (Newtonsoft)' |  Clr |     Clr |     10.1469 us |   0.0442 us |   0.1595 us |    0.5046 |        - |        - |   5.43 kB |
 |           'Deserialize: Simple MiniProfiler (Jil)' |  Clr |     Clr |      3.6040 us |   0.0188 us |   0.0729 us |    0.1902 |        - |        - |   2.46 kB |
 |  'Deserialize: Simple MiniProfiler (ServiceStack)' |  Clr |     Clr |     10.3172 us |   0.0589 us |   0.2281 us |    0.3906 |        - |        - |   4.71 kB |
 |  'Deserialize: Complex MiniProfiler (.FromJson())' |  Clr |     Clr | 10,534.4819 us |  34.2485 us | 132.6438 us |         - |        - |        - |   1.33 MB |
 |   'Deserialize: Complex MiniProfiler (Newtonsoft)' |  Clr |     Clr | 10,133.8850 us |  50.1502 us | 194.2310 us |         - |        - |        - |   1.33 MB |
 |          'Deserialize: Complex MiniProfiler (Jil)' |  Clr |     Clr |  3,420.0965 us |  25.5365 us |  95.5489 us |         - |        - |        - | 981.12 kB |
 | 'Deserialize: Complex MiniProfiler (ServiceStack)' |  Clr |     Clr | 23,603.4651 us | 149.2010 us | 558.2588 us | 1016.6667 | 208.3333 |        - |   9.09 MB |
 |       'Serialize: Simple MiniProfiler (.ToJson())' | Core |    Core |      4.5407 us |   0.0279 us |   0.1080 us |    0.3316 |        - |        - |   3.34 kB |
 |      'Serialize: Simple MiniProfiler (Newtonsoft)' | Core |    Core |      4.5362 us |   0.0168 us |   0.0630 us |    0.3560 |        - |        - |   3.34 kB |
 |             'Serialize: Simple MiniProfiler (Jil)' | Core |    Core |      2.2648 us |   0.0089 us |   0.0333 us |    0.4064 |        - |        - |   3.13 kB |
 |    'Serialize: Simple MiniProfiler (ServiceStack)' | Core |    Core |      4.1242 us |   0.0201 us |   0.0752 us |    0.0081 |        - |        - |   1.19 kB |
 |      'Serialize: Complex MiniProfiler (.ToJson())' | Core |    Core |  5,853.4474 us |  58.1810 us | 334.2246 us |  335.4167 | 227.0833 |  84.3750 |   2.33 MB |
 |     'Serialize: Complex MiniProfiler (Newtonsoft)' | Core |    Core |  5,544.9364 us |  26.8652 us | 104.0484 us |  343.7500 | 234.3750 |  93.7500 |   2.33 MB |
 |            'Serialize: Complex MiniProfiler (Jil)' | Core |    Core |  4,141.9273 us |  36.9055 us | 142.9343 us |  543.4570 | 433.5938 | 184.0820 |   3.46 MB |
 |   'Serialize: Complex MiniProfiler (ServiceStack)' | Core |    Core |  4,210.2155 us |  13.3916 us |  50.1066 us |   81.2500 |        - |        - |   1.16 MB |
 |   'Deserialize: Simple MiniProfiler (.FromJson())' | Core |    Core |     10.2357 us |   0.0603 us |   0.2256 us |    0.4069 |        - |        - |   4.71 kB |
 |    'Deserialize: Simple MiniProfiler (Newtonsoft)' | Core |    Core |     10.1121 us |   0.0434 us |   0.1683 us |    0.3988 |        - |        - |   4.71 kB |
 |           'Deserialize: Simple MiniProfiler (Jil)' | Core |    Core |      3.1531 us |   0.0179 us |   0.0695 us |    0.2072 |        - |        - |   1.76 kB |
 |  'Deserialize: Simple MiniProfiler (ServiceStack)' | Core |    Core |     14.4850 us |   0.1764 us |   0.8644 us |    0.4169 |        - |        - |      4 kB |
 |  'Deserialize: Complex MiniProfiler (.FromJson())' | Core |    Core | 10,653.1990 us | 101.4820 us | 393.0381 us |         - |        - |        - |   1.33 MB |
 |   'Deserialize: Complex MiniProfiler (Newtonsoft)' | Core |    Core | 10,436.0681 us |  44.0573 us | 164.8474 us |         - |        - |        - |   1.33 MB |
 |          'Deserialize: Complex MiniProfiler (Jil)' | Core |    Core |  3,125.5180 us |  19.8062 us |  76.7092 us |    3.1250 |        - |        - | 977.48 kB |
 | 'Deserialize: Complex MiniProfiler (ServiceStack)' | Core |    Core | 23,320.2913 us | 176.7215 us | 684.4393 us | 1062.5000 | 250.0000 |        - |   8.39 MB |

Link to source: MiniProfiler/dotnet

History:

  • v1: Initial commit
  • v2: Adding ServiceStack.Text
  • v3: Optimize ServiceStack.Text date handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment