Skip to content

Commit 0896d00

Browse files
committed
Remove outdated eco package from bench
The `eco`-templates (Embedded CoffeeScript templates) had their last update over 10 years ago, so we can remove this dependency from our benchmark.
1 parent f73be4e commit 0896d00

File tree

13 files changed

+7
-118
lines changed

13 files changed

+7
-118
lines changed

package-lock.json

Lines changed: 0 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"concurrently": "^5.0.0",
4141
"dirty-chai": "^2.0.1",
4242
"dustjs-linkedin": "^2.0.2",
43-
"eco": "~1.1.0-rc-3",
4443
"eslint": "^6.7.2",
4544
"eslint-config-prettier": "^6.7.0",
4645
"eslint-plugin-compat": "^3.13.0",

tests/bench/templates/array-each.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ module.exports = {
99
},
1010
handlebars: '{{#each names}}{{name}}{{/each}}',
1111
dust: '{#names}{name}{/names}',
12-
mustache: '{{#names}}{{name}}{{/names}}',
13-
eco: '<% for item in @names: %><%= item.name %><% end %>'
12+
mustache: '{{#names}}{{name}}{{/names}}'
1413
};

tests/bench/templates/complex.eco

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/bench/templates/complex.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ module.exports = {
1515

1616
handlebars: fs.readFileSync(__dirname + '/complex.handlebars').toString(),
1717
dust: fs.readFileSync(__dirname + '/complex.dust').toString(),
18-
eco: fs.readFileSync(__dirname + '/complex.eco').toString(),
1918
mustache: fs.readFileSync(__dirname + '/complex.mustache').toString()
2019
};

tests/bench/templates/depth-1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ module.exports = {
99
foo: 'bar'
1010
},
1111
handlebars: '{{#each names}}{{../foo}}{{/each}}',
12-
mustache: '{{#names}}{{foo}}{{/names}}',
13-
eco: '<% for item in @names: %><%= @foo %><% end %>'
12+
mustache: '{{#names}}{{foo}}{{/names}}'
1413
};

tests/bench/templates/depth-2.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ module.exports = {
1010
},
1111
handlebars:
1212
'{{#each names}}{{#each name}}{{../bat}}{{../../foo}}{{/each}}{{/each}}',
13-
mustache: '{{#names}}{{#name}}{{bat}}{{foo}}{{/name}}{{/names}}',
14-
eco:
15-
'<% for item in @names: %><% for child in item.name: %><%= item.bat %><%= @foo %><% end %><% end %>'
13+
mustache: '{{#names}}{{#name}}{{bat}}{{foo}}{{/name}}{{/names}}'
1614
};

tests/bench/templates/object.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ module.exports = {
22
context: { person: { name: 'Larry', age: 45 } },
33
handlebars: '{{#with person}}{{name}}{{age}}{{/with}}',
44
dust: '{#person}{name}{age}{/person}',
5-
eco: '<%= @person.name %><%= @person.age %>',
65
mustache: '{{#person}}{{name}}{{age}}{{/person}}'
76
};

tests/bench/templates/paths.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ module.exports = {
33
handlebars:
44
'{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}',
55
dust: '{person.name.bar.baz}{person.age}{person.foo}{animal.age}',
6-
eco:
7-
'<%= @person.name.bar.baz %><%= @person.age %><%= @person.foo %><% if @animal: %><%= @animal.age %><% end %>',
86
mustache: '{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}'
97
};

tests/bench/templates/string.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ module.exports = {
22
context: {},
33
handlebars: 'Hello world',
44
dust: 'Hello world',
5-
mustache: 'Hello world',
6-
eco: 'Hello world'
5+
mustache: 'Hello world'
76
};

0 commit comments

Comments
 (0)