Skip to content

Basic Benchmark

Andrew Theken edited this page Jul 8, 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 | Parse Time | Render Time | Total Time | |----- |-----| -----:|-----:|-----:|-----:|-----:|-----:|-----:| |Model Depth| 0.332ms| 5000x| 5| 10| 30000| 00:00:01.1496600| 00:00:00.5104096| 00:00:01.6600761| |Model Depth| 0.5276ms| 5000x| 10| 10| 30000| 00:00:01.9812569| 00:00:00.6573463| 00:00:02.6386118| |Model Depth| 4.864ms| 5000x| 100| 10| 30000| 00:00:18.4924734| 00:00:05.8276595| 00:00:24.3201401| |Substitutions| 0.3256ms| 5000x| 5| 10| 30000| 00:00:01.2142981| 00:00:00.4146772| 00:00:01.6289825| |Substitutions| 0.316ms| 5000x| 5| 50| 30000| 00:00:01.1375549| 00:00:00.4431159| 00:00:01.5806869| |Substitutions| 0.3178ms| 5000x| 5| 100| 30000| 00:00:01.1669284| 00:00:00.4227985| 00:00:01.5897345| |Template Size| 0.2896ms| 5000x| 5| 10| 15000| 00:00:01.1080735| 00:00:00.3406185| 00:00:01.4486991| |Template Size| 0.3054ms| 5000x| 5| 10| 25000| 00:00:01.1721470| 00:00:00.3557432| 00:00:01.5278977| |Template Size| 0.3044ms| 5000x| 5| 10| 30000| 00:00:01.0856182| 00:00:00.4369666| 00:00:01.5225916| |Template Size| 0.5636ms| 5000x| 5| 10| 50000| 00:00:01.6186360| 00:00:01.1994404| 00:00:02.8180837| |Template Size| 0.9092ms| 5000x| 5| 10| 100000| 00:00:02.3300329| 00:00:02.2161895| 00:00:04.5462484|

Clone this wiki locally