diff --git a/perf/perf.js b/perf/perf.js
index a1988dc1c..ae7388cc3 100644
--- a/perf/perf.js
+++ b/perf/perf.js
@@ -388,33 +388,14 @@
"list": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]\
};\
\
- var tplBase =\
+ var tpl =\
"
" +\
"" +\
"" +\
"" +\
"" +\
"" +\
- "";\
- \
- var tpl =\
- tplBase +\
- "
" +\
- "- <%= list[0] %>
" +\
- "- <%= list[1] %>
" +\
- "- <%= list[2] %>
" +\
- "- <%= list[3] %>
" +\
- "- <%= list[4] %>
" +\
- "- <%= list[5] %>
" +\
- "- <%= list[6] %>
" +\
- "- <%= list[7] %>
" +\
- "- <%= list[8] %>
" +\
- "- <%= list[9] %>
" +\
- "
" +\
- "
";\
- \
- var tplWithEvaluate =\
- tplBase +\
+ "" +\
"" +\
"<% for (var index = 0, length = list.length; index < length; index++) { %>" +\
"- <%= list[index] %>
" +\
@@ -422,33 +403,14 @@
"
" +\
"";\
\
- var tplBaseVerbose =\
+ var tplVerbose =\
"" +\
"" +\
"" +\
"" +\
"" +\
"" +\
- "";\
- \
- var tplVerbose =\
- tplBaseVerbose +\
- "
" +\
- "- <%= data.list[0] %>
" +\
- "- <%= data.list[1] %>
" +\
- "- <%= data.list[2] %>
" +\
- "- <%= data.list[3] %>
" +\
- "- <%= data.list[4] %>
" +\
- "- <%= data.list[5] %>
" +\
- "- <%= data.list[6] %>
" +\
- "- <%= data.list[7] %>
" +\
- "- <%= data.list[8] %>
" +\
- "- <%= data.list[9] %>
" +\
- "
" +\
- "
";\
- \
- var tplVerboseWithEvaluate =\
- tplBaseVerbose +\
+ "" +\
"" +\
"<% for (var index = 0, length = data.list.length; index < length; index++) { %>" +\
"- <%= data.list[index] %>
" +\
@@ -459,14 +421,10 @@
var settingsObject = { "variable": "data" };\
\
var lodashTpl = lodash.template(tpl),\
- lodashTplWithEvaluate = lodash.template(tplWithEvaluate),\
- lodashTplVerbose = lodash.template(tplVerbose, null, settingsObject),\
- lodashTplVerboseWithEvaluate = lodash.template(tplVerboseWithEvaluate, null, settingsObject);\
+ lodashTplVerbose = lodash.template(tplVerbose, null, settingsObject);\
\
var _tpl = _.template(tpl),\
- _tplWithEvaluate = _.template(tplWithEvaluate),\
- _tplVerbose = _.template(tplVerbose, null, settingsObject),\
- _tplVerboseWithEvaluate = _.template(tplVerboseWithEvaluate, null, settingsObject);\
+ _tplVerbose = _.template(tplVerbose, null, settingsObject);\
}'
});
@@ -1533,7 +1491,7 @@
/*--------------------------------------------------------------------------*/
suites.push(
- Benchmark.Suite('`_.template` without "evaluate" delimiters (slow path)')
+ Benchmark.Suite('`_.template` (slow path)')
.add(buildName, {
'fn': 'lodash.template(tpl, tplData)',
'teardown': 'function template(){}'
@@ -1545,19 +1503,7 @@
);
suites.push(
- Benchmark.Suite('`_.template` with "evaluate" delimiters (slow path)')
- .add(buildName, {
- 'fn': 'lodash.template(tplWithEvaluate, tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_.template(tplWithEvaluate, tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('compiled template without "evaluate" delimiters')
+ Benchmark.Suite('compiled template')
.add(buildName, {
'fn': 'lodashTpl(tplData)',
'teardown': 'function template(){}'
@@ -1569,19 +1515,7 @@
);
suites.push(
- Benchmark.Suite('compiled template with "evaluate" delimiters')
- .add(buildName, {
- 'fn': 'lodashTplWithEvaluate(tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_tplWithEvaluate(tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
- suites.push(
- Benchmark.Suite('compiled template without a with-statement or "evaluate" delimiters')
+ Benchmark.Suite('compiled template without a with-statement')
.add(buildName, {
'fn': 'lodashTplVerbose(tplData)',
'teardown': 'function template(){}'
@@ -1592,18 +1526,6 @@
})
);
- suites.push(
- Benchmark.Suite('compiled template without a with-statement using "evaluate" delimiters')
- .add(buildName, {
- 'fn': 'lodashTplVerboseWithEvaluate(tplData)',
- 'teardown': 'function template(){}'
- })
- .add(otherName, {
- 'fn': '_tplVerboseWithEvaluate(tplData)',
- 'teardown': 'function template(){}'
- })
- );
-
/*--------------------------------------------------------------------------*/
suites.push(