public void mustache() { Clock.Benchmark("mustache. Handlebars", () => { // }, iteration); }
public void HandlebarsDotNet_both() { Clock.Benchmark("HandlebarsDotNet. Handlebars", () => { var compile = HandlebarsDotNet.Handlebars.Compile(template); compile(context); }, iteration); }
public void FuManchuTest_both() { Clock.Benchmark("FuManchu. Handlebars", () => { var compile = Handlebars.Compile("<template-name>", template); compile(context); }, iteration); }
public void HandlebarsDotNet_separate() { Func <object, string> compile = null; Clock.Benchmark("HandlebarsDotNet. Handlebars compile", () => { compile = HandlebarsDotNet.Handlebars.Compile(template); compile(context); }, iteration); Clock.Benchmark("HandlebarsDotNet. Handlebars run ", () => { compile(context); }, iteration); }
public void FuManchuTest_separate() { HandlebarTemplate compile = null; Clock.Benchmark("FuManchu. Handlebars compile", () => { compile = Handlebars.Compile("<template-name>", template); compile(context); }, iteration); Clock.Benchmark("FuManchu. Handlebars run ", () => { compile(context); }, iteration); }