diff --git a/angular-v1.6.3-keyed/src/home.controller.js b/angular-v1.6.3-keyed/src/home.controller.js
index 55e809fe6..7bc4c8893 100644
--- a/angular-v1.6.3-keyed/src/home.controller.js
+++ b/angular-v1.6.3-keyed/src/home.controller.js
@@ -86,9 +86,9 @@ export class HomeController {
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
this.printDuration();
};
diff --git a/angular-v5.0.0-keyed/src/app.ts b/angular-v5.0.0-keyed/src/app.ts
index 7beee0f4f..fcf3ff82b 100644
--- a/angular-v5.0.0-keyed/src/app.ts
+++ b/angular-v5.0.0-keyed/src/app.ts
@@ -145,9 +145,9 @@ export class AppComponent implements AfterViewChecked {
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
diff --git a/angular-v5.0.0-no-zone-keyed/src/app.ts b/angular-v5.0.0-no-zone-keyed/src/app.ts
index 0e27e2b19..65304c098 100644
--- a/angular-v5.0.0-no-zone-keyed/src/app.ts
+++ b/angular-v5.0.0-no-zone-keyed/src/app.ts
@@ -152,9 +152,9 @@ export class AppComponent implements AfterViewChecked {
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
this.changeDetector.detectChanges();
}
diff --git a/angular-v5.0.0-non-keyed/src/app.ts b/angular-v5.0.0-non-keyed/src/app.ts
index 031a0fee6..d8fcae632 100644
--- a/angular-v5.0.0-non-keyed/src/app.ts
+++ b/angular-v5.0.0-non-keyed/src/app.ts
@@ -96,7 +96,7 @@ export class AppComponent implements AfterViewChecked {
}
itemByIndex(index: number, item: Data) {
- return index;
+ return index;
}
select(item: Data, event: Event) {
@@ -145,9 +145,9 @@ export class AppComponent implements AfterViewChecked {
swapRows() {
startMeasure("swapRows");
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
diff --git a/aurelia-v1.1.5-non-keyed/src/store.js b/aurelia-v1.1.5-non-keyed/src/store.js
index 2b956ebce..6f75f3140 100644
--- a/aurelia-v1.1.5-non-keyed/src/store.js
+++ b/aurelia-v1.1.5-non-keyed/src/store.js
@@ -66,10 +66,10 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- var b = this.data[9];
- this.data.splice(4, 1, b);
- this.data.splice(9, 1, a);
+ var a = this.data[1];
+ var b = this.data[998];
+ this.data.splice(1, 1, b);
+ this.data.splice(998, 1, a);
}
}
diff --git a/binding.scala-v10.0.1-keyed/js/src/main/scala/com/thoughtworks/binding/benchmark/Store.scala b/binding.scala-v10.0.1-keyed/js/src/main/scala/com/thoughtworks/binding/benchmark/Store.scala
index 3f92a4f40..a2426eb14 100644
--- a/binding.scala-v10.0.1-keyed/js/src/main/scala/com/thoughtworks/binding/benchmark/Store.scala
+++ b/binding.scala-v10.0.1-keyed/js/src/main/scala/com/thoughtworks/binding/benchmark/Store.scala
@@ -128,10 +128,10 @@ final class Store {
def swapRows() = {
val buffer = data.get
if (buffer.length >= 10) {
- val row4 = buffer(4)
- val row9 = buffer(9)
- buffer(9) = row4
- buffer(4) = row9
+ val row1 = buffer(1)
+ val row998 = buffer(998)
+ buffer(998) = row1
+ buffer(1) = row998
}
}
diff --git a/bobril-v8.0.1-keyed/src/store.ts b/bobril-v8.0.1-keyed/src/store.ts
index 278177b01..080228b1f 100644
--- a/bobril-v8.0.1-keyed/src/store.ts
+++ b/bobril-v8.0.1-keyed/src/store.ts
@@ -69,9 +69,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/choo-v6.5.0-keyed/src/store.js b/choo-v6.5.0-keyed/src/store.js
index c473be287..6ed1d8ef6 100644
--- a/choo-v6.5.0-keyed/src/store.js
+++ b/choo-v6.5.0-keyed/src/store.js
@@ -37,9 +37,9 @@ module.exports = function(state, emitter) {
emitter.on('swapRows', function() {
if (state.data.length > 10) {
- const a = state.data[4];
- state.data[4] = state.data[9];
- state.data[9] = a;
+ const a = state.data[1];
+ state.data[1] = state.data[998];
+ state.data[998] = a;
}
emitter.emit('render');
});
diff --git a/cyclejs-dom-v19.3.0-non-keyed/src/main.jsx b/cyclejs-dom-v19.3.0-non-keyed/src/main.jsx
index 85966cc78..d9fba1942 100644
--- a/cyclejs-dom-v19.3.0-non-keyed/src/main.jsx
+++ b/cyclejs-dom-v19.3.0-non-keyed/src/main.jsx
@@ -17,14 +17,14 @@ let nouns = ['table', 'chair', 'house', 'bbq', 'desk', 'car', 'pony', 'cookie',
function buildData(count = 1000) {
var data = [];
-
+
for(var i = 0; i < count; i++) {
data.push({
id: id++,
label: adjectives[_random(adjectives.length)] + ' ' + colours[_random(colours.length)] + ' ' + nouns[_random(nouns.length)]
});
}
-
+
return data;
};
@@ -39,9 +39,9 @@ const Operations = {
SwapRows: state => {
let d = state.items.splice(0);
if(d.length > 10) {
- var a = d[4];
- d[4] = d[9];
- d[9] = a;
+ var a = d[1];
+ d[1] = d[998];
+ d[998] = a;
}
return {items: d, selected: state.selected};
}
@@ -58,23 +58,23 @@ function intent(DOMSource) {
DOMSource.select('.remove').events('click').map(evt => {
evt.preventDefault();
evt.stopPropagation();
-
+
let el = evt.target;
while(el && !el.id) {
el = el.parentNode;
}
-
+
return Operations.RemoveItem(parseInt(el.id));
}),
DOMSource.select('.select').events('click').map(evt => {
evt.preventDefault();
evt.stopPropagation();
-
+
let el = evt.target;
while(el && !el.id) {
el = el.parentNode;
}
-
+
return Operations.SelectItem(parseInt(el.id));
})
);
@@ -143,7 +143,7 @@ function view(state$) {
function main(sources) {
const state$ = model(intent(sources.DOM));
-
+
return {
DOM: view(state$)
}
diff --git a/datum-v0.10.0-keyed/src/Main.js b/datum-v0.10.0-keyed/src/Main.js
index 11a197ad8..6794cc8b8 100644
--- a/datum-v0.10.0-keyed/src/Main.js
+++ b/datum-v0.10.0-keyed/src/Main.js
@@ -88,9 +88,9 @@ var HomeViewModel = function () {
this.swapRows = new Datum.Click(function () {
startMeasure("swapRows");
if (this.data.length > 10) {
- var a = this.data[4];
- var b = this.data.splice(9, 1, a)[0];
- this.data.splice(4, 1, b);
+ var a = this.data[1];
+ var b = this.data.splice(998, 1, a)[0];
+ this.data.splice(1, 1, b);
}
stopMeasure();
});
diff --git a/dio-v8.0.3-keyed/src/utils.es6.js b/dio-v8.0.3-keyed/src/utils.es6.js
index ae5f5082b..5f1f82132 100644
--- a/dio-v8.0.3-keyed/src/utils.es6.js
+++ b/dio-v8.0.3-keyed/src/utils.es6.js
@@ -37,9 +37,9 @@ export const update = (data) => {
export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
- let temp = newData[4];
- newData[4] = newData[9];
- newData[9] = temp;
+ let temp = newData[1];
+ newData[1] = newData[998];
+ newData[998] = temp;
}
return newData;
}
diff --git a/dio-v8.0.3-non-keyed/src/utils.es6.js b/dio-v8.0.3-non-keyed/src/utils.es6.js
index ae5f5082b..5f1f82132 100644
--- a/dio-v8.0.3-non-keyed/src/utils.es6.js
+++ b/dio-v8.0.3-non-keyed/src/utils.es6.js
@@ -37,9 +37,9 @@ export const update = (data) => {
export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
- let temp = newData[4];
- newData[4] = newData[9];
- newData[9] = temp;
+ let temp = newData[1];
+ newData[1] = newData[998];
+ newData[998] = temp;
}
return newData;
}
diff --git a/dojo2-v0.2.0-keyed/src/Store.ts b/dojo2-v0.2.0-keyed/src/Store.ts
index 412c2e1ba..2ba20d4ae 100644
--- a/dojo2-v0.2.0-keyed/src/Store.ts
+++ b/dojo2-v0.2.0-keyed/src/Store.ts
@@ -134,9 +134,9 @@ export class Store {
public swapRows() {
if (this._data.length > 10) {
- const row = this._data[4];
- this._data[4] = this._data[9];
- this._data[9] = row;
+ const row = this._data[1];
+ this._data[1] = this._data[998];
+ this._data[998] = row;
}
}
}
diff --git a/dojo2-v0.2.0-non-keyed/src/Store.ts b/dojo2-v0.2.0-non-keyed/src/Store.ts
index 412c2e1ba..2ba20d4ae 100644
--- a/dojo2-v0.2.0-non-keyed/src/Store.ts
+++ b/dojo2-v0.2.0-non-keyed/src/Store.ts
@@ -134,9 +134,9 @@ export class Store {
public swapRows() {
if (this._data.length > 10) {
- const row = this._data[4];
- this._data[4] = this._data[9];
- this._data[9] = row;
+ const row = this._data[1];
+ this._data[1] = this._data[998];
+ this._data[998] = row;
}
}
}
diff --git a/domvm-v3.2.2-keyed/src/store.es6.js b/domvm-v3.2.2-keyed/src/store.es6.js
index 7cf619ccc..1be587408 100644
--- a/domvm-v3.2.2-keyed/src/store.es6.js
+++ b/domvm-v3.2.2-keyed/src/store.es6.js
@@ -78,9 +78,9 @@ Store.prototype = {
swapRows: function() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
},
};
\ No newline at end of file
diff --git a/domvm-v3.2.2-non-keyed/src/store.es6.js b/domvm-v3.2.2-non-keyed/src/store.es6.js
index 7cf619ccc..1be587408 100644
--- a/domvm-v3.2.2-non-keyed/src/store.es6.js
+++ b/domvm-v3.2.2-non-keyed/src/store.es6.js
@@ -78,9 +78,9 @@ Store.prototype = {
swapRows: function() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
},
};
\ No newline at end of file
diff --git a/elm-v0.18.0-keyed/src/Main.elm b/elm-v0.18.0-keyed/src/Main.elm
index b8d6619a2..7a4a8c7fc 100644
--- a/elm-v0.18.0-keyed/src/Main.elm
+++ b/elm-v0.18.0-keyed/src/Main.elm
@@ -272,16 +272,16 @@ update msg model =
|> Array.fromList
from =
- get 4 arr
+ get 1 arr
to =
- get 9 arr
+ get 998 arr
in
( { model
| rows =
arr
- |> Array.set 4 to
- |> Array.set 9 from
+ |> Array.set 1 to
+ |> Array.set 998 from
|> Array.toList
}
, Cmd.none
diff --git a/ember-v2.16.2-keyed/app/services/rows.js b/ember-v2.16.2-keyed/app/services/rows.js
index 453b62358..5719ba6f3 100755
--- a/ember-v2.16.2-keyed/app/services/rows.js
+++ b/ember-v2.16.2-keyed/app/services/rows.js
@@ -87,15 +87,15 @@ export default Ember.Service.extend({
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
+ let d1 = this.data[1];
+ let d998 = this.data[998];
var data = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
diff --git a/etch-v0.12.5-keyed/src/Store.es6.js b/etch-v0.12.5-keyed/src/Store.es6.js
index 08c0023d4..c3c9a6dfa 100644
--- a/etch-v0.12.5-keyed/src/Store.es6.js
+++ b/etch-v0.12.5-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/etch-v0.12.5-non-keyed/src/Store.es6.js b/etch-v0.12.5-non-keyed/src/Store.es6.js
index 08c0023d4..c3c9a6dfa 100644
--- a/etch-v0.12.5-non-keyed/src/Store.es6.js
+++ b/etch-v0.12.5-non-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/glimmer-v0.8.0-keyed/src/ui/components/my-table/component.ts b/glimmer-v0.8.0-keyed/src/ui/components/my-table/component.ts
index 770a1ee86..580f6c26a 100644
--- a/glimmer-v0.8.0-keyed/src/ui/components/my-table/component.ts
+++ b/glimmer-v0.8.0-keyed/src/ui/components/my-table/component.ts
@@ -80,9 +80,9 @@ export default class Glimmerjs extends Component {
startMeasure("swapRows");
if(this.rows.data.length > 10) {
let data = this.rows.data;
- let d4 = data[4];
- data[4] = data[9];
- data[9] = d4;
+ let d1 = data[1];
+ data[1] = data[998];
+ data[998] = d1;
this.rows = { ...this.rows, data }
}
stopMeasure();
diff --git a/gruu-v1.7.3-non-keyed/src/Store.es6.js b/gruu-v1.7.3-non-keyed/src/Store.es6.js
index eb02bc921..16f6a16ba 100644
--- a/gruu-v1.7.3-non-keyed/src/Store.es6.js
+++ b/gruu-v1.7.3-non-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows () {
if(this.data.length > 10) {
- const a = this.data[4]
- this.data[4] = this.data[9]
- this.data[9] = a
+ const a = this.data[1]
+ this.data[1] = this.data[998]
+ this.data[998] = a
}
}
}
\ No newline at end of file
diff --git a/halogen-v2.1.0-non-keyed/src/Main.purs b/halogen-v2.1.0-non-keyed/src/Main.purs
index 3dc9e85b3..87ed962f8 100644
--- a/halogen-v2.1.0-non-keyed/src/Main.purs
+++ b/halogen-v2.1.0-non-keyed/src/Main.purs
@@ -222,7 +222,7 @@ render state =
[ HH.tbody_
$ map (renderRow state.selected) state.rows ]
, HH.span
- [ HP.classes [ HH.ClassName "preloadicon glyphicon glyphicon-remove" ]
+ [ HP.classes [ HH.ClassName "preloadicon glyphicon glyphicon-remove" ]
, HP.attr (HH.AttrName "aria-hidden") "true" ]
[ HH.text "" ]
]
@@ -287,7 +287,7 @@ buttons =
, { bid: "add", str: "Append 1,000 Rows", q: Append 1000 }
, { bid: "update", str: "Update Every 10th Row", q: UpdateEvery 10 }
, { bid: "clear", str: "Clear", q: Clear }
- , { bid: "swaprows", str: "Swap Rows", q: Swap 4 9 } ]
+ , { bid: "swaprows", str: "Swap Rows", q: Swap 1 998 } ]
diff --git a/hyperapp-v0.16.0-keyed/src/store.js b/hyperapp-v0.16.0-keyed/src/store.js
index 07e0e4186..715116697 100644
--- a/hyperapp-v0.16.0-keyed/src/store.js
+++ b/hyperapp-v0.16.0-keyed/src/store.js
@@ -113,9 +113,9 @@ const actions = {
return state
}
- const temp = state.data[4]
- state.data[4] = state.data[9]
- state.data[9] = temp
+ const temp = state.data[1]
+ state.data[1] = state.data[998]
+ state.data[998] = temp
return {
data: state.data,
diff --git a/hyperapp-v0.16.0-non-keyed/src/store.js b/hyperapp-v0.16.0-non-keyed/src/store.js
index 07e0e4186..715116697 100644
--- a/hyperapp-v0.16.0-non-keyed/src/store.js
+++ b/hyperapp-v0.16.0-non-keyed/src/store.js
@@ -113,9 +113,9 @@ const actions = {
return state
}
- const temp = state.data[4]
- state.data[4] = state.data[9]
- state.data[9] = temp
+ const temp = state.data[1]
+ state.data[1] = state.data[998]
+ state.data[998] = temp
return {
data: state.data,
diff --git a/hyperhtml-v1.12.5-non-keyed/src/store.js b/hyperhtml-v1.12.5-non-keyed/src/store.js
index 869e4f042..93a286bac 100644
--- a/hyperhtml-v1.12.5-non-keyed/src/store.js
+++ b/hyperhtml-v1.12.5-non-keyed/src/store.js
@@ -122,9 +122,9 @@ export class Store {
}
swapRows() {
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/inferno-v3.10.1-keyed/src/store.es6.js b/inferno-v3.10.1-keyed/src/store.es6.js
index 5071e4199..314080eb6 100644
--- a/inferno-v3.10.1-keyed/src/store.es6.js
+++ b/inferno-v3.10.1-keyed/src/store.es6.js
@@ -62,9 +62,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
diff --git a/inferno-v3.10.1-non-keyed/src/store.es6.js b/inferno-v3.10.1-non-keyed/src/store.es6.js
index 5071e4199..314080eb6 100644
--- a/inferno-v3.10.1-non-keyed/src/store.es6.js
+++ b/inferno-v3.10.1-non-keyed/src/store.es6.js
@@ -62,9 +62,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
diff --git a/ivi-v0.9.1-keyed/src/store.js b/ivi-v0.9.1-keyed/src/store.js
index 1502a4f7c..b7e28a75b 100644
--- a/ivi-v0.9.1-keyed/src/store.js
+++ b/ivi-v0.9.1-keyed/src/store.js
@@ -51,9 +51,9 @@ export const store = createStore(
return { data: mut([]), selected: null };
case "swaprows":
if (data.length > 10) {
- const a = data[4];
- data[4] = data[9];
- data[9] = a;
+ const a = data[1];
+ data[1] = data[998];
+ data[998] = a;
}
return { data: mut(data), selected: state.selected };
}
diff --git a/knockout-v3.4.1-keyed/src/Main.js b/knockout-v3.4.1-keyed/src/Main.js
index c0e0bf371..a3c48d466 100644
--- a/knockout-v3.4.1-keyed/src/Main.js
+++ b/knockout-v3.4.1-keyed/src/Main.js
@@ -80,9 +80,9 @@ var HomeViewModel = function () {
startMeasure("swapRows");
var tmp = self.data();
if (tmp.length > 10) {
- var a = tmp[4];
- tmp[4] = tmp[9];
- tmp[9] = a;
+ var a = tmp[1];
+ tmp[1] = tmp[998];
+ tmp[998] = a;
self.data(tmp);
}
stopMeasure();
diff --git a/lit-html-v0.7.1-non-keyed/src/app.js b/lit-html-v0.7.1-non-keyed/src/app.js
index e6a33a362..407c76e1b 100644
--- a/lit-html-v0.7.1-non-keyed/src/app.js
+++ b/lit-html-v0.7.1-non-keyed/src/app.js
@@ -79,9 +79,9 @@ class MainElement extends HTMLElement {
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
- var tmp = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = tmp;
+ var tmp = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = tmp;
}
this.render();
stopMeasure();
diff --git a/maquette-v3.0.1-keyed/src/store.es6.js b/maquette-v3.0.1-keyed/src/store.es6.js
index 7cf619ccc..1be587408 100644
--- a/maquette-v3.0.1-keyed/src/store.es6.js
+++ b/maquette-v3.0.1-keyed/src/store.es6.js
@@ -78,9 +78,9 @@ Store.prototype = {
swapRows: function() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
},
};
\ No newline at end of file
diff --git a/marionette-v3.5.1-domapi-keyed/src/Main.js b/marionette-v3.5.1-domapi-keyed/src/Main.js
index 49ada02af..3b0d9a107 100644
--- a/marionette-v3.5.1-domapi-keyed/src/Main.js
+++ b/marionette-v3.5.1-domapi-keyed/src/Main.js
@@ -90,10 +90,10 @@ const Store = Bb.Collection.extend({
swapRows() {
startMeasure("swapRows");
if (this.length > 10) {
- const a = this.models[4];
- this.models[4] = this.models[9];
- this.models[9] = a;
- this.trigger('swap', this.models[4], this.models[9]);
+ const a = this.models[1];
+ this.models[1] = this.models[998];
+ this.models[998] = a;
+ this.trigger('swap', this.models[1], this.models[998]);
}
stopMeasure();
}
diff --git a/marionette-v3.5.1-keyed/src/Main.js b/marionette-v3.5.1-keyed/src/Main.js
index 6adeb121a..b634bbce0 100644
--- a/marionette-v3.5.1-keyed/src/Main.js
+++ b/marionette-v3.5.1-keyed/src/Main.js
@@ -101,10 +101,10 @@ const Store = Bb.Collection.extend({
swapRows() {
startMeasure("swapRows");
if (this.length > 10) {
- const a = this.models[4];
- this.models[4] = this.models[9];
- this.models[9] = a;
- this.trigger('swap', this.models[4], this.models[9]);
+ const a = this.models[1];
+ this.models[1] = this.models[998];
+ this.models[998] = a;
+ this.trigger('swap', this.models[1], this.models[998]);
}
stopMeasure();
}
diff --git a/marko-v4.5.6-keyed/src/main/component.js b/marko-v4.5.6-keyed/src/main/component.js
index 4153d2596..c1c628a97 100644
--- a/marko-v4.5.6-keyed/src/main/component.js
+++ b/marko-v4.5.6-keyed/src/main/component.js
@@ -75,9 +75,9 @@ module.exports = {
let data = this.state.data;
if(data.length > 10) {
- var a = data[4];
- data[4] = data[9];
- data[9] = a;
+ var a = data[1];
+ data[1] = data[998];
+ data[998] = a;
}
this.forceUpdate();
},
diff --git a/mithril-v1.1.1-keyed/src/store.es6.js b/mithril-v1.1.1-keyed/src/store.es6.js
index 308b862e9..2b9d3f75e 100644
--- a/mithril-v1.1.1-keyed/src/store.es6.js
+++ b/mithril-v1.1.1-keyed/src/store.es6.js
@@ -51,9 +51,9 @@ var Store = {
},
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
};
diff --git a/moon-v0.11.0/src/scripts.js b/moon-v0.11.0/src/scripts.js
index 32d294833..a2a4bd91f 100644
--- a/moon-v0.11.0/src/scripts.js
+++ b/moon-v0.11.0/src/scripts.js
@@ -148,9 +148,9 @@ new Moon({
var data = this.get("data");
if (data.length > 10) {
startMeasure("swap");
- var tmp = data[4];
- data[4] = data[9];
- data[9] = tmp;
+ var tmp = data[1];
+ data[1] = data[998];
+ data[998] = tmp;
this.set("data", data);
stopMeasure("swap");
}
diff --git a/nx-v1.0.0-beta.2.0.1-keyed/src/app.js b/nx-v1.0.0-beta.2.0.1-keyed/src/app.js
index cf9406b89..dcd1c618c 100644
--- a/nx-v1.0.0-beta.2.0.1-keyed/src/app.js
+++ b/nx-v1.0.0-beta.2.0.1-keyed/src/app.js
@@ -82,10 +82,10 @@ function setup (elem, state) {
state.swapRows = function swapRows () {
timer.startMeasure('swapRows')
if (10 < state.rows.length) {
- const item4 = state.rows[4]
- const item9 = state.rows[9]
- state.rows[4] = item9
- state.rows[9] = item4
+ const item1 = state.rows[1]
+ const item998 = state.rows[998]
+ state.rows[1] = item998
+ state.rows[998] = item1
}
timer.stopMeasure()
}
diff --git a/nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js b/nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js
index 17189e8f7..1f0f809ac 100644
--- a/nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js
+++ b/nx-v1.0.0-beta.2.0.1-non-keyed/src/app.js
@@ -82,10 +82,10 @@ function setup (elem, state) {
state.swapRows = function swapRows () {
timer.startMeasure('swapRows')
if (10 < state.rows.length) {
- const item4 = state.rows[4]
- const item9 = state.rows[9]
- state.rows[4] = item9
- state.rows[9] = item4
+ const item1 = state.rows[1]
+ const item998 = state.rows[998]
+ state.rows[1] = item998
+ state.rows[998] = item1
}
timer.stopMeasure()
}
diff --git a/petit-dom-v0.0.12-keyed/src/store.js b/petit-dom-v0.0.12-keyed/src/store.js
index cd46cf9c0..33d711fb9 100644
--- a/petit-dom-v0.0.12-keyed/src/store.js
+++ b/petit-dom-v0.0.12-keyed/src/store.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/pico-dom-v1.0.0-keyed/src/store.js b/pico-dom-v1.0.0-keyed/src/store.js
index d02266c8b..6b72e61bf 100644
--- a/pico-dom-v1.0.0-keyed/src/store.js
+++ b/pico-dom-v1.0.0-keyed/src/store.js
@@ -67,9 +67,9 @@ Store.prototype = {
},
swapRows: function() {
if(this.data.length > 10) {
- var a = this.data[4]
- this.data[4] = this.data[9]
- this.data[9] = a
+ var a = this.data[1]
+ this.data[1] = this.data[998]
+ this.data[998] = a
}
}
}
diff --git a/plastiq-v1.33.0-keyed/src/entry/store.es6.js b/plastiq-v1.33.0-keyed/src/entry/store.es6.js
index de69f7f48..2f2ad2906 100755
--- a/plastiq-v1.33.0-keyed/src/entry/store.es6.js
+++ b/plastiq-v1.33.0-keyed/src/entry/store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/polymer-v2.0.0-non-keyed/src/main-element.html b/polymer-v2.0.0-non-keyed/src/main-element.html
index 4c7171307..caf11ca78 100755
--- a/polymer-v2.0.0-non-keyed/src/main-element.html
+++ b/polymer-v2.0.0-non-keyed/src/main-element.html
@@ -120,9 +120,9 @@
Polymer v2.0.0
swapRows() {
startMeasure("swapRows");
if(this.data.length > 10) {
- var tmp = this.data[4];
- this.set(["data", 4], this.data[9]);
- this.set(["data", 9], tmp);
+ var tmp = this.data[1];
+ this.set(["data", 1], this.data[998]);
+ this.set(["data", 998], tmp);
}
stopMeasure();
}
diff --git a/preact-v8.2.6-keyed/src/Store.es6.js b/preact-v8.2.6-keyed/src/Store.es6.js
index a5d550f4e..064527a1a 100644
--- a/preact-v8.2.6-keyed/src/Store.es6.js
+++ b/preact-v8.2.6-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/ractive-edge-keyed/src/main.es6.js b/ractive-edge-keyed/src/main.es6.js
index 109dda5bd..17a908330 100755
--- a/ractive-edge-keyed/src/main.es6.js
+++ b/ractive-edge-keyed/src/main.es6.js
@@ -77,9 +77,9 @@ var ractive = window.r = new Ractive({
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
- var a = this.get('data')[4];
- this.splice('data', 4, 1, this.get('data')[9]);
- this.splice('data', 9, 1, a);
+ var a = this.get('data')[1];
+ this.splice('data', 1, 1, this.get('data')[998]);
+ this.splice('data', 998, 1, a);
}
stopMeasure();
});
diff --git a/ractive-edge-non-keyed/src/main.es6.js b/ractive-edge-non-keyed/src/main.es6.js
index 002ef920c..ef9731bea 100755
--- a/ractive-edge-non-keyed/src/main.es6.js
+++ b/ractive-edge-non-keyed/src/main.es6.js
@@ -77,9 +77,9 @@ var ractive = window.r = new Ractive({
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
- var a = this.get('data')[4];
- this.set('data[4]', this.get('data')[9]);
- this.set('data[9]', a);
+ var a = this.get('data')[1];
+ this.set('data[1]', this.get('data')[998]);
+ this.set('data[998]', a);
}
stopMeasure();
});
diff --git a/ractive-v0.9.9-keyed/src/main.es6.js b/ractive-v0.9.9-keyed/src/main.es6.js
index 4ede335f2..7bebe1f55 100755
--- a/ractive-v0.9.9-keyed/src/main.es6.js
+++ b/ractive-v0.9.9-keyed/src/main.es6.js
@@ -77,9 +77,9 @@ var ractive = window.r = new Ractive({
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
- var a = this.get('data')[4];
- this.splice('data', 4, 1, this.get('data')[9]);
- this.splice('data', 9, 1, a);
+ var a = this.get('data')[1];
+ this.splice('data', 1, 1, this.get('data')[998]);
+ this.splice('data', 998, 1, a);
}
stopMeasure();
});
diff --git a/ractive-v0.9.9-non-keyed/src/main.es6.js b/ractive-v0.9.9-non-keyed/src/main.es6.js
index 8a0875729..ab9bd2acd 100755
--- a/ractive-v0.9.9-non-keyed/src/main.es6.js
+++ b/ractive-v0.9.9-non-keyed/src/main.es6.js
@@ -77,9 +77,9 @@ var ractive = window.r = new Ractive({
this.on('swapRows', function (event) {
startMeasure("swapRows");
if(this.get('data').length > 10) {
- var a = this.get('data')[4];
- this.set('data[4]', this.get('data')[9]);
- this.set('data[9]', a);
+ var a = this.get('data')[1];
+ this.set('data[1]', this.get('data')[998]);
+ this.set('data[998]', a);
}
stopMeasure();
});
diff --git a/react-lite-v0.15.30-keyed/src/Store.es6.js b/react-lite-v0.15.30-keyed/src/Store.es6.js
index 08c0023d4..c3c9a6dfa 100755
--- a/react-lite-v0.15.30-keyed/src/Store.es6.js
+++ b/react-lite-v0.15.30-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/react-v15.5.4-keyed/src/Store.es6.js b/react-v15.5.4-keyed/src/Store.es6.js
index 08c0023d4..c3c9a6dfa 100755
--- a/react-v15.5.4-keyed/src/Store.es6.js
+++ b/react-v15.5.4-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/react-v15.5.4-non-keyed/src/Store.es6.js b/react-v15.5.4-non-keyed/src/Store.es6.js
index 08c0023d4..c3c9a6dfa 100755
--- a/react-v15.5.4-non-keyed/src/Store.es6.js
+++ b/react-v15.5.4-non-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/react-v16.1.0-easy-state-v3.0.1-keyed/src/store.js b/react-v16.1.0-easy-state-v3.0.1-keyed/src/store.js
index d6d81f2ec..3b1ace321 100644
--- a/react-v16.1.0-easy-state-v3.0.1-keyed/src/store.js
+++ b/react-v16.1.0-easy-state-v3.0.1-keyed/src/store.js
@@ -62,9 +62,9 @@ export default easyStore({
swapRows() {
startMeasure('swapRows')
if (this.rows.length > 10) {
- const temp = this.rows[4]
- this.rows[4] = this.rows[9]
- this.rows[9] = temp
+ const temp = this.rows[1]
+ this.rows[1] = this.rows[998]
+ this.rows[998] = temp
}
stopMeasure('swapRows')
}
diff --git a/react-v16.1.0-keyed/src/utils.es6.js b/react-v16.1.0-keyed/src/utils.es6.js
index ae5f5082b..5f1f82132 100644
--- a/react-v16.1.0-keyed/src/utils.es6.js
+++ b/react-v16.1.0-keyed/src/utils.es6.js
@@ -37,9 +37,9 @@ export const update = (data) => {
export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
- let temp = newData[4];
- newData[4] = newData[9];
- newData[9] = temp;
+ let temp = newData[1];
+ newData[1] = newData[998];
+ newData[998] = temp;
}
return newData;
}
diff --git a/react-v16.1.0-mobX-v3.3.1-keyed/src/Store.es6.js b/react-v16.1.0-mobX-v3.3.1-keyed/src/Store.es6.js
index bda65e6bd..b25f4437b 100755
--- a/react-v16.1.0-mobX-v3.3.1-keyed/src/Store.es6.js
+++ b/react-v16.1.0-mobX-v3.3.1-keyed/src/Store.es6.js
@@ -75,9 +75,9 @@ export class Store {
}
@action swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/react-v16.1.0-non-keyed/src/utils.es6.js b/react-v16.1.0-non-keyed/src/utils.es6.js
index ae5f5082b..5f1f82132 100644
--- a/react-v16.1.0-non-keyed/src/utils.es6.js
+++ b/react-v16.1.0-non-keyed/src/utils.es6.js
@@ -37,9 +37,9 @@ export const update = (data) => {
export const swapRows = (data) => {
const newData = [...data];
if (newData.length > 10) {
- let temp = newData[4];
- newData[4] = newData[9];
- newData[9] = temp;
+ let temp = newData[1];
+ newData[1] = newData[998];
+ newData[998] = temp;
}
return newData;
}
diff --git a/react-v16.1.0-redux-v3.7.2-keyed/src/store.es6.js b/react-v16.1.0-redux-v3.7.2-keyed/src/store.es6.js
index 57e8fecd5..c23b72c2f 100755
--- a/react-v16.1.0-redux-v3.7.2-keyed/src/store.es6.js
+++ b/react-v16.1.0-redux-v3.7.2-keyed/src/store.es6.js
@@ -129,9 +129,9 @@ function dataStore(state = initialState, action) {
})
case SWAP_ROWS:
return state.withMutations(original => {
- const a = original.getIn(['data', 4]);
- original.setIn(['data', 4], original.getIn(['data', 9]));
- original.setIn(['data', 9], a);
+ const a = original.getIn(['data', 1]);
+ original.setIn(['data', 1], original.getIn(['data', 998]));
+ original.setIn(['data', 998], a);
});
default:
return state;
diff --git a/redom-v3.7.0-keyed/src/store.js b/redom-v3.7.0-keyed/src/store.js
index 54c41de51..f2964c97a 100644
--- a/redom-v3.7.0-keyed/src/store.js
+++ b/redom-v3.7.0-keyed/src/store.js
@@ -61,9 +61,9 @@ export class Store {
}
swapRows () {
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/redom-v3.7.0-non-keyed/src/store.js b/redom-v3.7.0-non-keyed/src/store.js
index 54c41de51..f2964c97a 100644
--- a/redom-v3.7.0-non-keyed/src/store.js
+++ b/redom-v3.7.0-non-keyed/src/store.js
@@ -61,9 +61,9 @@ export class Store {
}
swapRows () {
if (this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/riot-v3.7.4-non-keyed/src/store.es6.js b/riot-v3.7.4-non-keyed/src/store.es6.js
index e83dc2c88..18bb18110 100755
--- a/riot-v3.7.4-non-keyed/src/store.es6.js
+++ b/riot-v3.7.4-non-keyed/src/store.es6.js
@@ -59,15 +59,15 @@ export default class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4]
- let d9 = this.data[9]
+ let d1 = this.data[1]
+ let d998 = this.data[998]
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9
+ if(i === 1) {
+ return d998
}
- else if(i === 9) {
- return d4
+ else if(i === 998) {
+ return d1
}
return data
})
diff --git a/rx-domh-v0.0.2-rxjs-v5.3.0-keyed/src/Store.es6.js b/rx-domh-v0.0.2-rxjs-v5.3.0-keyed/src/Store.es6.js
index a5d550f4e..064527a1a 100644
--- a/rx-domh-v0.0.2-rxjs-v5.3.0-keyed/src/Store.es6.js
+++ b/rx-domh-v0.0.2-rxjs-v5.3.0-keyed/src/Store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/san-v3.2.6-non-keyed/src/store.es6.js b/san-v3.2.6-non-keyed/src/store.es6.js
index e2a3e21f7..1b09ce945 100755
--- a/san-v3.2.6-non-keyed/src/store.es6.js
+++ b/san-v3.2.6-non-keyed/src/store.es6.js
@@ -121,15 +121,15 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
+ let d1 = this.data[1];
+ let d998 = this.data[998];
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
@@ -138,12 +138,12 @@ export class Store {
{
type: 'splice',
name: 'rows',
- arg: [9, 1, d4]
+ arg: [998, 1, d1]
},
{
type: 'splice',
name: 'rows',
- arg: [4, 1, d9]
+ arg: [1, 1, d998]
}
);
}
diff --git a/simulacra-v2.1.5-non-keyed/src/main.js b/simulacra-v2.1.5-non-keyed/src/main.js
index 6e6039afd..bd66ffda4 100644
--- a/simulacra-v2.1.5-non-keyed/src/main.js
+++ b/simulacra-v2.1.5-non-keyed/src/main.js
@@ -67,10 +67,10 @@ var methods = {
var a, b
if (state.rows.length > 10) {
- a = Object.assign({}, state.rows[4])
- b = Object.assign({}, state.rows[9])
- Object.assign(state.rows[4], b)
- Object.assign(state.rows[9], a)
+ a = Object.assign({}, state.rows[1])
+ b = Object.assign({}, state.rows[998])
+ Object.assign(state.rows[1], b)
+ Object.assign(state.rows[998], a)
}
})
},
diff --git a/slim-js-v3.0.2-non-keyed/main-app.js b/slim-js-v3.0.2-non-keyed/main-app.js
index 560217ec1..ab12f1d0d 100644
--- a/slim-js-v3.0.2-non-keyed/main-app.js
+++ b/slim-js-v3.0.2-non-keyed/main-app.js
@@ -83,9 +83,9 @@ class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/stem-v0.2.70-non-keyed/src/Main.jsx b/stem-v0.2.70-non-keyed/src/Main.jsx
index 1a512ac41..ed8c41c64 100644
--- a/stem-v0.2.70-non-keyed/src/Main.jsx
+++ b/stem-v0.2.70-non-keyed/src/Main.jsx
@@ -71,8 +71,8 @@ class BenchmarkElement extends UI.Element {
swapRows() {
startMeasure("swapRows");
- const i = 4;
- const j = 9;
+ const i = 1;
+ const j = 998;
let obj_i = this.tbody.getGivenChildren()[i];
let obj_j = this.tbody.getGivenChildren()[j];
diff --git a/surplus-v0.5.0-keyed/src/store.ts b/surplus-v0.5.0-keyed/src/store.ts
index 0dbf8d50f..292cb1257 100644
--- a/surplus-v0.5.0-keyed/src/store.ts
+++ b/surplus-v0.5.0-keyed/src/store.ts
@@ -131,9 +131,9 @@ export class Store {
swapRows() {
let data = this.data();
if (data.length > 10) {
- var a = data[4];
- data[4] = data[9];
- data[9] = a;
+ var a = data[1];
+ data[1] = data[998];
+ data[998] = a;
}
this.data(data);
}
diff --git a/surplus-v0.5.0-non-keyed/src/store.ts b/surplus-v0.5.0-non-keyed/src/store.ts
index 3df7977d6..412a5be17 100644
--- a/surplus-v0.5.0-non-keyed/src/store.ts
+++ b/surplus-v0.5.0-non-keyed/src/store.ts
@@ -127,9 +127,9 @@ export class Store {
swapRows() {
let data = this.data();
if (data.length > 10) {
- var a = data[4];
- data[4] = data[9];
- data[9] = a;
+ var a = data[1];
+ data[1] = data[998];
+ data[998] = a;
}
this.data(data);
}
diff --git a/svelte-v1.41.2-keyed/src/DataStore.js b/svelte-v1.41.2-keyed/src/DataStore.js
index 5922e81da..5bf04a873 100644
--- a/svelte-v1.41.2-keyed/src/DataStore.js
+++ b/svelte-v1.41.2-keyed/src/DataStore.js
@@ -44,9 +44,9 @@ export default class DataStore {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/svelte-v1.41.2-non-keyed/src/DataStore.js b/svelte-v1.41.2-non-keyed/src/DataStore.js
index 5922e81da..5bf04a873 100644
--- a/svelte-v1.41.2-non-keyed/src/DataStore.js
+++ b/svelte-v1.41.2-non-keyed/src/DataStore.js
@@ -44,9 +44,9 @@ export default class DataStore {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
diff --git a/thermite-v4.0.0-non-keyed/src/Main.purs b/thermite-v4.0.0-non-keyed/src/Main.purs
index 996a17d25..e7173a700 100644
--- a/thermite-v4.0.0-non-keyed/src/Main.purs
+++ b/thermite-v4.0.0-non-keyed/src/Main.purs
@@ -193,7 +193,7 @@ buttons =
, { bid: "add", str: "Append 1,000 Rows", a: Append 1000 }
, { bid: "update", str: "Update Every 10th Row", a: UpdateEvery 10 }
, { bid: "clear", str: "Clear", a: Clear }
- , { bid: "swaprows", str: "Swap Rows", a: Swap 4 9 } ]
+ , { bid: "swaprows", str: "Swap Rows", a: Swap 1 998 } ]
renderButton :: _
-> { bid :: String, str :: String, a :: Action }
diff --git a/tsers-v1.0.0-non-keyed/src/store.es6.js b/tsers-v1.0.0-non-keyed/src/store.es6.js
index b143112c1..70877b139 100644
--- a/tsers-v1.0.0-non-keyed/src/store.es6.js
+++ b/tsers-v1.0.0-non-keyed/src/store.es6.js
@@ -58,15 +58,15 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
-
+ let d1 = this.data[1];
+ let d998 = this.data[998];
+
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
diff --git a/vanillajs-keyed/src/Main.js b/vanillajs-keyed/src/Main.js
index a092b04be..76b9ade1a 100644
--- a/vanillajs-keyed/src/Main.js
+++ b/vanillajs-keyed/src/Main.js
@@ -84,9 +84,9 @@ class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
@@ -290,20 +290,20 @@ class Main {
this.unselect();
stopMeasure();
});
- }
+ }
swapRows() {
startMeasure("swapRows");
if (this.data.length>10) {
this.store.swapRows();
- this.data[4] = this.store.data[4];
- this.data[9] = this.store.data[9];
+ this.data[1] = this.store.data[1];
+ this.data[998] = this.store.data[998];
- this.tbody.insertBefore(this.rows[9], this.rows[5])
- this.tbody.insertBefore(this.rows[4], this.rows[10])
+ this.tbody.insertBefore(this.rows[998], this.rows[2])
+ this.tbody.insertBefore(this.rows[1], this.rows[999])
- let tmp = this.rows[9];
- this.rows[9] = this.rows[4];
- this.rows[4] = tmp;
+ let tmp = this.rows[998];
+ this.rows[998] = this.rows[1];
+ this.rows[1] = tmp;
}
diff --git a/vanillajs-non-keyed/src/Main.js b/vanillajs-non-keyed/src/Main.js
index 9ac3a0efb..bb5f24731 100644
--- a/vanillajs-non-keyed/src/Main.js
+++ b/vanillajs-non-keyed/src/Main.js
@@ -84,9 +84,9 @@ class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
@@ -300,7 +300,7 @@ class Main {
this.unselect();
stopMeasure();
});
- }
+ }
swapRows() {
startMeasure("swapRows");
let old_selection = this.store.selected;
diff --git a/vidom-v0.9.8-keyed/src/store.es6.js b/vidom-v0.9.8-keyed/src/store.es6.js
index aaef71283..1b41cb7ea 100755
--- a/vidom-v0.9.8-keyed/src/store.es6.js
+++ b/vidom-v0.9.8-keyed/src/store.es6.js
@@ -51,9 +51,9 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- var a = this.data[4];
- this.data[4] = this.data[9];
- this.data[9] = a;
+ var a = this.data[1];
+ this.data[1] = this.data[998];
+ this.data[998] = a;
}
}
}
\ No newline at end of file
diff --git a/vue-v2.5.3-keyed/src/store.es6.js b/vue-v2.5.3-keyed/src/store.es6.js
index b3ff6ec9c..6f6f0e1d6 100755
--- a/vue-v2.5.3-keyed/src/store.es6.js
+++ b/vue-v2.5.3-keyed/src/store.es6.js
@@ -58,15 +58,15 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
+ let d1 = this.data[1];
+ let d998 = this.data[998];
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
diff --git a/vue-v2.5.3-non-keyed/src/store.es6.js b/vue-v2.5.3-non-keyed/src/store.es6.js
index b3ff6ec9c..6f6f0e1d6 100755
--- a/vue-v2.5.3-non-keyed/src/store.es6.js
+++ b/vue-v2.5.3-non-keyed/src/store.es6.js
@@ -58,15 +58,15 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
+ let d1 = this.data[1];
+ let d998 = this.data[998];
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
diff --git a/vuera-v0.1.3-non-keyed/src/Store.es6.js b/vuera-v0.1.3-non-keyed/src/Store.es6.js
index f9aed8b91..70587cac0 100644
--- a/vuera-v0.1.3-non-keyed/src/Store.es6.js
+++ b/vuera-v0.1.3-non-keyed/src/Store.es6.js
@@ -58,15 +58,15 @@ export class Store {
}
swapRows() {
if(this.data.length > 10) {
- let d4 = this.data[4];
- let d9 = this.data[9];
+ let d1 = this.data[1];
+ let d998 = this.data[998];
var newData = this.data.map(function(data, i) {
- if(i === 4) {
- return d9;
+ if(i === 1) {
+ return d998;
}
- else if(i === 9) {
- return d4;
+ else if(i === 998) {
+ return d1;
}
return data;
});
diff --git a/webdriver-java/src/main/java/net/stefankrause/App.java b/webdriver-java/src/main/java/net/stefankrause/App.java
index 41a511ccc..f248b730a 100755
--- a/webdriver-java/src/main/java/net/stefankrause/App.java
+++ b/webdriver-java/src/main/java/net/stefankrause/App.java
@@ -278,16 +278,16 @@ public void init(WebDriver driver, String url) {
clickElementById(driver,"run");
testElementLocatedByXpath(driver,"//tbody/tr[1]/td[2]/a");
for (int i = 0; i< WARMUP_COUNT; i++) {
- String val = getTextByXPath(driver,"//tbody/tr[5]/td[2]/a");
+ String val = getTextByXPath(driver,"//tbody/tr[2]/td[2]/a");
clickElementById(driver,"swaprows");
- testTextContains(driver,"//tbody/tr[10]/td[2]/a", val);
+ testTextContains(driver,"//tbody/tr[999]/td[2]/a", val);
}
}
public void test(WebDriver driver) {
- String text = getTextByXPath(driver,"//tbody/tr[5]/td[2]/a");
+ String text = getTextByXPath(driver,"//tbody/tr[2]/td[2]/a");
clickElementById(driver,"swaprows");
- testTextContains(driver,"//tbody/tr[10]/td[2]/a", text);
+ testTextContains(driver,"//tbody/tr[999]/td[2]/a", text);
}
public String getName() {
diff --git a/webdriver-ts/src/benchmarks.ts b/webdriver-ts/src/benchmarks.ts
index a205ca2ed..ac9cae7fc 100644
--- a/webdriver-ts/src/benchmarks.ts
+++ b/webdriver-ts/src/benchmarks.ts
@@ -28,7 +28,7 @@ const benchRun: Benchmark = {
}
}
-const benchReplaceAll: Benchmark = {
+const benchReplaceAll: Benchmark = {
id:"02_replace1k",
label: "replace all rows",
description: "Duration for updating all 1000 rows of the table (with "+config.WARMUP_COUNT+" warmup iterations).",
@@ -45,7 +45,7 @@ const benchReplaceAll: Benchmark = {
}
}
-const benchUpdate: Benchmark = {
+const benchUpdate: Benchmark = {
id:"03_update10th1k",
label: "partial update",
description: "Time to update the text of every 10th row (with "+config.WARMUP_COUNT+" warmup iterations) for a table with 10k rows.",
@@ -63,7 +63,7 @@ const benchUpdate: Benchmark = {
}
}
-const benchSelect: Benchmark = {
+const benchSelect: Benchmark = {
id:"04_select1k",
label: "select row",
description: "Duration to highlight a row in response to a click on the row. (with "+config.WARMUP_COUNT+" warmup iterations).",
@@ -82,7 +82,7 @@ const benchSelect: Benchmark = {
}
}
-const benchSwapRows: Benchmark = {
+const benchSwapRows: Benchmark = {
id:"05_swap1k",
label: "swap rows",
description: "Time to swap 2 rows on a 1K table. (with "+config.WARMUP_COUNT+" warmup iterations).",
@@ -92,19 +92,19 @@ const benchSwapRows: Benchmark = {
await clickElementById(driver,'run');
await testElementLocatedByXpath(driver,"//tbody/tr[1]/td[2]/a");
for (let i=0; i<=config.WARMUP_COUNT; i++) {
- let text = await getTextByXPath(driver,"//tbody/tr[5]/td[2]/a")
+ let text = await getTextByXPath(driver,"//tbody/tr[2]/td[2]/a")
await clickElementById(driver,'swaprows');
- await testTextContains(driver,"//tbody/tr[10]/td[2]/a", text);
+ await testTextContains(driver,"//tbody/tr[999]/td[2]/a", text);
}
},
run: async function(driver: WebDriver) {
- let text = await getTextByXPath(driver,"//tbody/tr[5]/td[2]/a");
+ let text = await getTextByXPath(driver,"//tbody/tr[2]/td[2]/a");
await clickElementById(driver,'swaprows');
- await testTextContains(driver,"//tbody/tr[10]/td[2]/a", text);
+ await testTextContains(driver,"//tbody/tr[999]/td[2]/a", text);
}
}
-const benchRemove: Benchmark = {
+const benchRemove: Benchmark = {
id:"06_remove-one-1k",
label: "remove row",
description: "Duration to remove a row. (with "+config.WARMUP_COUNT+" warmup iterations).",
@@ -117,7 +117,7 @@ const benchRemove: Benchmark = {
await testTextContains(driver, `//tbody/tr[${config.WARMUP_COUNT-i+4}]/td[1]`, (config.WARMUP_COUNT-i+4).toString());
await clickElementByXPath(driver, `//tbody/tr[${config.WARMUP_COUNT-i+4}]/td[3]/a/span[1]`);
await testTextContains(driver, `//tbody/tr[${config.WARMUP_COUNT-i+4}]/td[1]`, '10');
- }
+ }
await testTextContains(driver, '//tbody/tr[5]/td[1]', '10');
await testTextContains(driver, '//tbody/tr[4]/td[1]', '4');
},
@@ -127,7 +127,7 @@ const benchRemove: Benchmark = {
}
}
-const benchRunBig: Benchmark = {
+const benchRunBig: Benchmark = {
id: "07_create10k",
label: "create many rows",
description: "Duration to create 10,000 rows",
@@ -141,7 +141,7 @@ const benchRunBig: Benchmark = {
}
}
-const benchAppendToManyRows: Benchmark = {
+const benchAppendToManyRows: Benchmark = {
id: "08_create1k-after10k",
label: "append rows to large table",
description: "Duration for adding 1000 rows on a table of 10,000 rows.",
@@ -157,7 +157,7 @@ const benchAppendToManyRows: Benchmark = {
}
}
-const benchClear: Benchmark = {
+const benchClear: Benchmark = {
id: "09_clear10k",
label: "clear rows",
description: "Duration to clear the table filled with 10.000 rows.",
@@ -173,7 +173,7 @@ const benchClear: Benchmark = {
}
}
-const benchReadyMemory: Benchmark = {
+const benchReadyMemory: Benchmark = {
id: "21_ready-memory",
label: "ready memory",
description: "Memory usage after page load.",
@@ -181,7 +181,7 @@ const benchReadyMemory: Benchmark = {
init: async function(driver: WebDriver) {
await testElementLocatedById(driver, "add", SHORT_TIMEOUT);
},
- run: async function(driver: WebDriver) {
+ run: async function(driver: WebDriver) {
await testElementNotLocatedByXPath(driver, "//tbody/tr[1]");
},
after: async function(driver: WebDriver, framework: FrameworkData) {
@@ -190,7 +190,7 @@ const benchReadyMemory: Benchmark = {
}
}
-const benchRunMemory: Benchmark = {
+const benchRunMemory: Benchmark = {
id: "22_run-memory",
label: "run memory",
description: "Memory usage after adding 1000 rows.",
@@ -204,7 +204,7 @@ const benchRunMemory: Benchmark = {
}
}
-const benchUpdate5Memory: Benchmark = {
+const benchUpdate5Memory: Benchmark = {
id: "23_update5-memory",
label: "update eatch 10th row for 1k rows (5 cycles)",
description: "Memory usage after clicking update every 10th row 5 times",
@@ -216,12 +216,12 @@ const benchUpdate5Memory: Benchmark = {
await clickElementById(driver, 'run');
for (let i=0; i<5; i++) {
await clickElementById(driver,'update');
- await testTextContains(driver,'//tbody/tr[1]/td[2]/a', ' !!!'.repeat(i));
+ await testTextContains(driver,'//tbody/tr[1]/td[2]/a', ' !!!'.repeat(i));
}
}
}
-const benchReplace5Memory: Benchmark = {
+const benchReplace5Memory: Benchmark = {
id: "24_run5-memory",
label: "replace 1k rows (5 cycles)",
description: "Memory usage after clicking create 1000 rows 5 times",
@@ -237,7 +237,7 @@ const benchReplace5Memory: Benchmark = {
}
}
-const benchCreateClear5Memory: Benchmark = {
+const benchCreateClear5Memory: Benchmark = {
id: "25_run-clear-memory",
label: "creating/clearing 1k rows (5 cycles)",
description: "Memory usage after creating and clearing 1000 rows 5 times",
@@ -255,7 +255,7 @@ const benchCreateClear5Memory: Benchmark = {
}
}
-const benchStartup: Benchmark = {
+const benchStartup: Benchmark = {
id: "30_startup",
label: "startup time",
description: "Time for loading, parsing and starting up",
@@ -293,4 +293,4 @@ export let benchmarks : [ Benchmark ] = [
export function fileName(framework :FrameworkData, benchmark: Benchmark) {
return `${framework.name}_${benchmark.id}.json`;
-}
\ No newline at end of file
+}
\ No newline at end of file