-
Notifications
You must be signed in to change notification settings - Fork 0
Flxble.Templating: Benchmarks
cannorin edited this page Jan 15, 2019
·
1 revision
Flxble.Templating is considered to be one of the fastest end-user (sandboxed) .NET templating engines.
See benchmarks/Program.fs for the actual source code.
The other libraries used in this benchmark:
- Cottle, Version="1.4.1"
- DotLiquid, Version="2.0.298"
- Scriban, Version="1.2.9"
- Stubble.Core, Version="1.2.7"
BenchmarkDotNet=v0.11.3, OS=debian
Intel Core i5-8250U CPU 1.60GHz (Kaby Lake R), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=2.2.102
[Host] : .NET Core 2.2.1 (CoreCLR 4.6.27207.03, CoreFX 4.6.27207.03), 64bit RyuJIT DEBUG
DefaultJob : .NET Core 2.2.1 (CoreCLR 4.6.27207.03, CoreFX 4.6.27207.03), 64bit RyuJIT| Type | Method | Mean | Error | StdDev | Gen 0/1k Op | Gen 1/1k Op | Gen 2/1k Op | Allocated Memory/Op |
|---|---|---|---|---|---|---|---|---|
| All | 'parsing+rendering: Flxble' | 1,994.59 us | 8.4960 us | 7.9471 us | 582.0313 | 27.3438 | 27.3438 | 1867.9 KB |
| Parsing | 'parsing: Flxble' | 266.17 us | 0.8511 us | 0.7544 us | 20.5078 | - | - | 64.28 KB |
| Rendering | 'rendering: Flxble' | 1,697.68 us | 6.2068 us | 5.8058 us | 556.6406 | 29.2969 | 29.2969 | 1803.62 KB |
| All | 'parsing+rendering: Scriban' | 2,375.25 us | 12.2031 us | 11.4148 us | 93.7500 | 31.2500 | 31.2500 | 387.75 KB |
| Parsing | 'parsing: Scriban' | 55.58 us | 0.2876 us | 0.2690 us | 1.4648 | - | - | 4.52 KB |
| Rendering | 'rendering: Scriban' | 2,283.44 us | 6.2218 us | 5.8198 us | 93.7500 | 31.2500 | 31.2500 | 383.23 KB |
| All | 'parsing+rendering: DotLiquid' | 14,664.16 us | 96.0680 us | 89.8621 us | 1218.7500 | 31.2500 | 31.2500 | 3853.27 KB |
| Parsing | 'parsing: DotLiquid' | 146.01 us | 0.8465 us | 0.7918 us | 4.3945 | - | - | 13.98 KB |
| Rendering | 'rendering: DotLiquid' | 14,127.53 us | 17.7632 us | 16.6157 us | 1203.1250 | 31.2500 | 31.2500 | 3837.06 KB |
| All | 'parsing+rendering: Stubble' | 7,103.54 us | 11.8596 us | 10.5132 us | 890.6250 | 46.8750 | 23.4375 | 2850.68 KB |
| Parsing | 'parsing: Stubble' | 135.32 us | 1.1089 us | 1.0373 us | 3.4180 | - | - | 10.9 KB |
| Rendering | 'rendering: Stubble' | 7,508.09 us | 14.6332 us | 13.6879 us | 890.6250 | 46.8750 | 23.4375 | 2850.68 KB |
| All | 'parsing+rendering: Cottle' | 3,612.85 us | 4.8951 us | 4.3394 us | 308.5938 | 136.7188 | 23.4375 | 1685.73 KB |
| Parsing | 'parsing: Cottle' | 17.47 us | 0.0564 us | 0.0528 us | 3.7537 | - | - | 11.56 KB |
| Rendering | 'rendering: Cottle' | 3,588.93 us | 6.6444 us | 6.2152 us | 292.9688 | 140.6250 | 23.4375 | 1674.17 KB |