Add todoapp benchmark
This commit is contained in:
parent
479db8c2cc
commit
02e7b40c07
218 changed files with 63168 additions and 0 deletions
7
bench/implementations/ember-2.6.3/app/helpers/gt.js
Executable file
7
bench/implementations/ember-2.6.3/app/helpers/gt.js
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export function gt([n1, n2]/*, hash*/) {
|
||||
return n1 > n2;
|
||||
}
|
||||
|
||||
export default Ember.Helper.helper(gt);
|
||||
8
bench/implementations/ember-2.6.3/app/helpers/pluralize.js
Executable file
8
bench/implementations/ember-2.6.3/app/helpers/pluralize.js
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
import Ember from 'ember';
|
||||
import { pluralize } from 'ember-inflector';
|
||||
|
||||
export function pluralizeHelper([singular, count]/*, hash*/) {
|
||||
return count === 1 ? singular : pluralize(singular);
|
||||
}
|
||||
|
||||
export default Ember.Helper.helper(pluralizeHelper);
|
||||
Loading…
Add table
Add a link
Reference in a new issue