Further optimize _.template by controlling how the with-statement is inserted.

Former-commit-id: a62331e771302f9390d5aca04f878b839fe11b69
This commit is contained in:
John-David Dalton
2012-07-05 11:26:17 -04:00
parent a5fe1eb5fb
commit fe6aa8a6fc
4 changed files with 109 additions and 69 deletions

View File

@@ -699,7 +699,7 @@
/*--------------------------------------------------------------------------*/
suites.push(
Benchmark.Suite('`_.template` without "evaluate" delimiters')
Benchmark.Suite('`_.template` without "evaluate" delimiters (slow path)')
.add('Lo-Dash', function() {
lodash.template(tpl, tplData);
})
@@ -709,7 +709,7 @@
);
suites.push(
Benchmark.Suite('`_.template` with "evaluate" delimiters')
Benchmark.Suite('`_.template` with "evaluate" delimiters (slow path)')
.add('Lo-Dash', function() {
lodash.template(tplWithEvaluate, tplData);
})