diff --git a/angular/src/HomeController.es6.js b/angular/src/HomeController.es6.js index 5e47fb617..4b23d8699 100644 --- a/angular/src/HomeController.es6.js +++ b/angular/src/HomeController.es6.js @@ -22,7 +22,7 @@ export default class HomeController { this.id = 1; } - buildData(count = 1000) { + buildData(count = 10000) { var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"]; var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"]; var nouns = ["table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger", "pizza", "mouse", "keyboard"]; @@ -36,12 +36,12 @@ export default class HomeController { stopMeasure(); } _random(max) { - return Math.round(Math.random() * 1000) % max; + return Math.round(Math.random() * 10000) % max; } add() { startMeasure("add"); this.start = performance.now(); - this.data = this.data.concat(this.buildData(10)); + this.data = this.data.concat(this.buildData(100)); this.printDuration(); } select(item) { @@ -73,4 +73,4 @@ export default class HomeController { }; } -HomeController.$inject = ['$scope']; \ No newline at end of file +HomeController.$inject = ['$scope']; diff --git a/angular2/app/app.ts b/angular2/app/app.ts index 8b933a343..b35787a45 100644 --- a/angular2/app/app.ts +++ b/angular2/app/app.ts @@ -34,7 +34,7 @@ class MyAppComponent implements AfterViewChecked { constructor() { } - buildData(count: number = 1000): Array { + buildData(count: number = 10000): Array { var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"]; var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"]; var nouns = ["table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger", "pizza", "mouse", "keyboard"]; @@ -53,7 +53,7 @@ class MyAppComponent implements AfterViewChecked { } _random(max: number) { - return Math.round(Math.random()*1000)%max; + return Math.round(Math.random()*10000)%max; } select(item, event) { @@ -79,7 +79,7 @@ class MyAppComponent implements AfterViewChecked { add(event) { startMeasure("add"); - this.data = this.data.concat(this.buildData(10)); + this.data = this.data.concat(this.buildData(100)); this.printDuration(); } @@ -97,4 +97,4 @@ class MyAppComponent implements AfterViewChecked { } -bootstrap(MyAppComponent); \ No newline at end of file +bootstrap(MyAppComponent); diff --git a/aurelia/src/app.js b/aurelia/src/app.js index 804ebd8f1..5bc776829 100644 --- a/aurelia/src/app.js +++ b/aurelia/src/app.js @@ -1,7 +1,7 @@ import {inject, TaskQueue} from 'aurelia-framework'; function _random(max) { - return Math.round(Math.random() * 1000) % max; + return Math.round(Math.random() * 10000) % max; } class Store { @@ -11,7 +11,7 @@ class Store { this.id = 1; } - buildData(count = 1000) { + buildData(count = 10000) { var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"]; var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"]; var nouns = ["table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger", "pizza", "mouse", "keyboard"]; @@ -49,7 +49,7 @@ class Store { } add() { - this.data = this.data.concat(this.buildData(10)); + this.data = this.data.concat(this.buildData(100)); this.selected = undefined; } diff --git a/ember/app/services/rows.js b/ember/app/services/rows.js index b035a98be..d593c59e5 100644 --- a/ember/app/services/rows.js +++ b/ember/app/services/rows.js @@ -1,7 +1,7 @@ import Ember from 'ember'; function _random(max) { - return Math.round(Math.random()*1000)%max; + return Math.round(Math.random()*10000)%max; } var lastMeasure; @@ -41,7 +41,7 @@ export default Ember.Service.extend({ id: 1, init() { }, - buildData(count = 1000) { + buildData(count = 10000) { var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"]; var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"]; var nouns = ["table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger", "pizza", "mouse", "keyboard"]; @@ -81,7 +81,7 @@ export default Ember.Service.extend({ }, add() { startMeasure("add"); - var newData = this.data.concat(this.buildData(10)); + var newData = this.data.concat(this.buildData(100)); this.set('data', newData); this.set('selected', undefined); stopMeasure(); diff --git a/mithril/src/entry/store.es6.js b/mithril/src/entry/store.es6.js index ad9315143..92a3df963 100644 --- a/mithril/src/entry/store.es6.js +++ b/mithril/src/entry/store.es6.js @@ -5,7 +5,7 @@ 'use strict'; function _random(max) { - return Math.round(Math.random()*1000)%max; + return Math.round(Math.random()*10000)%max; } // model @@ -17,7 +17,7 @@ var Store = { const idx = this.data.findIndex(d => d.id==id); this.data.splice(idx, 1); }, - buildData: function(count = 1000) { + buildData: function(count = 10000) { var adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"]; var colours = ["red", "yellow", "blue", "green", "pink", "brown", "purple", "brown", "white", "black", "orange"]; var nouns = ["table", "chair", "house", "bbq", "desk", "car", "pony", "cookie", "sandwich", "burger", "pizza", "mouse", "keyboard"]; @@ -31,7 +31,7 @@ var Store = { this.selected = undefined; }, update : function(mod=10) { - for (let i=0;i