Skip to content

Basic Benchmark

Andrew Theken edited this page Jul 29, 2015 · 4 revisions

This is not meant to be an exhaustive performance analysis of Mustachio, just a general benchmark to understand the runtime performance characteristics of the parsing/rendering processes:

Variation Time/Run Runs Model Depth Substitution Count Template Size Parse Time (seconds) Render Time (seconds) Total Time (seconds)
Model Depth 0.332ms 5000x 5 10 30000 1.1496600 0.5104096 1.6600761
Model Depth 0.5276ms 5000x 10 10 30000 1.9812569 0.6573463 2.6386118
Model Depth 4.864ms 5000x 100 10 30000 18.4924734 5.8276595 24.3201401
Substitutions 0.3256ms 5000x 5 10 30000 1.2142981 0.4146772 1.6289825
Substitutions 0.316ms 5000x 5 50 30000 1.1375549 0.4431159 1.5806869
Substitutions 0.3178ms 5000x 5 100 30000 1.1669284 0.4227985 1.5897345
Template Size 0.2896ms 5000x 5 10 15000 1.1080735 0.3406185 1.4486991
Template Size 0.3054ms 5000x 5 10 25000 1.1721470 0.3557432 1.5278977
Template Size 0.3044ms 5000x 5 10 30000 1.0856182 0.4369666 1.5225916
Template Size 0.5636ms 5000x 5 10 50000 1.6186360 1.1994404 2.8180837
Template Size 0.9092ms 5000x 5 10 100000 2.3300329 2.2161895 4.5462484
Clone this wiki locally