Skip to content

Commit f2ea38f

Browse files
committed
Remove Nustache
1 parent 035db9a commit f2ea38f

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/Scriban.Benchmarks/Program.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ public Stubble.Core.Tokens.MustacheTemplate TestStubble()
150150
return new Stubble.Core.Settings.RendererSettingsBuilder().BuildSettings().Parser.Parse(TextTemplateMustache);
151151
}
152152

153-
[Benchmark(Description = "Nustache - Parser")]
154-
public Nustache.Core.Template TestNustache()
155-
{
156-
var template = new Nustache.Core.Template();
157-
template.Load(new StringReader(TextTemplateMustache));
158-
return template;
159-
}
160-
161153
[Benchmark(Description = "Handlebars.NET - Parser")]
162154
public HandlebarsTemplate<object, object> TestHandlebars()
163155
{
@@ -196,7 +188,6 @@ public class BenchRenderers
196188
private readonly DotLiquid.Template _dotLiquidTemplate;
197189
private readonly Stubble.Core.Settings.RendererSettings _stubbleSettings;
198190
private readonly Stubble.Core.Tokens.MustacheTemplate _stubbleTemplate;
199-
private readonly Nustache.Core.Template _nustacheTemplate;
200191
private readonly HandlebarsTemplate<object, object> _handlebarsTemplate;
201192
private readonly Cottle.IDocument _cottleTemplate;
202193
private readonly Fluid.IFluidTemplate _fluidTemplate;
@@ -219,7 +210,6 @@ public BenchRenderers()
219210
_dotLiquidTemplate = parsers.TestDotLiquid();
220211
_stubbleTemplate = parsers.TestStubble();
221212
_stubbleSettings = new Stubble.Core.Settings.RendererSettingsBuilder().BuildSettings();
222-
_nustacheTemplate = parsers.TestNustache();
223213
_handlebarsTemplate = parsers.TestHandlebars();
224214
_cottleTemplate = Cottle.Document.CreateDefault(BenchParsers.TextTemplateCottle, default).DocumentOrThrow;
225215
_fluidTemplate = parsers.TestFluid();
@@ -299,17 +289,6 @@ public string TestStubble()
299289
return renderer.Render(BenchParsers.TextTemplateMustache, props);
300290
}
301291

302-
[Benchmark(Description = "Nustache")]
303-
public string TestNustache()
304-
{
305-
int i = 0;
306-
return Nustache.Core.Render.StringToString(BenchParsers.TextTemplateMustache, new
307-
{
308-
products = _dotLiquidProducts,
309-
truncate = new Func<string, object>((str) => Scriban.Functions.StringFunctions.Truncate(Nustache.Core.Render.StringToString(str, _dotLiquidProducts[i++]), 15))
310-
});
311-
}
312-
313292
[Benchmark(Description = "Handlebars")]
314293
public string TestHandlebars()
315294
{

src/Scriban.Benchmarks/Scriban.Benchmarks.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<PackageReference Include="Fluid.Core" />
2020
<PackageReference Include="Handlebars.Net" />
2121
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" />
22-
<PackageReference Include="Nustache" />
2322
<PackageReference Include="Stubble.Core" />
2423
</ItemGroup>
2524
</Project>

0 commit comments

Comments
 (0)