Skip to content

Commit a2abc0c

Browse files
committed
Round Three including cyclejs 7
1 parent e9ace87 commit a2abc0c

File tree

203 files changed

+7945
-1837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+7945
-1837
lines changed

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,18 @@ Most actions will try to measure the duration and print it to the console. Depen
3737

3838
## About the benchmarks
3939

40-
* create 1000 rows: Time for creating a table with 1000 rows after the page loaded.
41-
* update 1000 rows (hot): Time for updating all 1000 rows of the table. A few iterations to warmup the javascript engine are performed before measuring.
42-
* partial update: Time to update the text of every 10th row. A few iterations to warmup the javascript engine are performed before measuring.
43-
* select row: Duration to highlight a row in response to a click on the row. A few iterations to warmup the javascript engine are performed before measuring.
44-
* remove row: Duration to remove a row. A few iterations to warmup the javascript engine are performed before measuring.
45-
* hide all: Time for hiding all the rows
46-
* show all: Timne for showing all the rows (after being hidden)
47-
* create lots of rows: Time for creating a table lots a rows (currently 10.000).
48-
* add 1000 rows after lots of rows: Time for adding 1000 rows on a table of add 1000 rows after lots of rows.
49-
* clear rows: Time to clear the table filled with 10.000 rows
40+
* create rows: Duration for creating 1000 rows after the page loaded.
41+
* replace all rows: Duration for updating all 1000 rows of the table (with 5 warmup iterations).
42+
* partial update: Time to update the text of every 10th row (with 5 warmup iterations).
43+
* select row: Duration to highlight a row in response to a click on the row. (with 5 warmup iterations).
44+
* swap rows: Time to swap 2 rows on a 1K table. (with 5 warmup iterations).
45+
* remove row: Duration to remove a row. (with 5 warmup iterations).
46+
* create many rows: Duration to create 10,000 rows
47+
* append rows to large table: Duration for adding 1000 rows on a table of 10,000 rows.
48+
* clear rows: Duration to clear the table filled with 10.000 rows.
5049
* clear rows a 2nd time: Time to clear the table filled with 10.000 rows. But warmed up with only one iteration.
51-
* select row on big list: Time to select a row on a 10K table.
52-
* swap rows: Time to swap 2 rows (1K table).
53-
* recycle rows: Time to create 1000 rows after clearing a 1K table.
50+
* ready memory: Memory usage after page load.
51+
* run memory: Memory usage after adding 1000 rows.
5452

5553
## Execute the benchmarks with selenium
5654

angular-v1.5.3/index.html

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

angular-v1.5.7/.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
presets: [ "es2015" ],
3+
plugins: []
4+
}

angular-v1.5.7/index.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Angular v1.5.7</title>
6+
<link href="../css/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
7+
<link href="../css/main.css" rel="stylesheet"/>
8+
<script src='dist/main.js'></script>
9+
</head>
10+
<body ng-app="app">
11+
<div class="container" ng-controller="HomeController as homeController">
12+
<div class="jumbotron">
13+
<div class="row">
14+
<div class="col-md-6">
15+
<h1>Angular v1.5.7</h1>
16+
</div>
17+
<div class="col-md-6">
18+
<div class="row">
19+
<div class="col-sm-6 smallpad">
20+
<button type="button" class="btn btn-primary btn-block" id="run" ng-click="homeController.run()">Create 1,000 rows</button>
21+
</div>
22+
<div class="col-sm-6 smallpad">
23+
<button type="button" class="btn btn-primary btn-block" id="runlots" ng-click="homeController.runLots()">Create 10,000 rows</button>
24+
</div>
25+
<div class="col-sm-6 smallpad">
26+
<button type="button" class="btn btn-primary btn-block" id="add" ng-click="homeController.add()">Append 1,000 rows</button>
27+
</div>
28+
<div class="col-sm-6 smallpad">
29+
<button type="button" class="btn btn-primary btn-block" id="update" ng-click="homeController.update()">Update every 10th row</button>
30+
</div>
31+
<div class="col-sm-6 smallpad">
32+
<button type="button" class="btn btn-primary btn-block" id="clear" ng-click="homeController.clear()">Clear</button>
33+
</div>
34+
<div class="col-sm-6 smallpad">
35+
<button type="button" class="btn btn-primary btn-block" id="swaprows" ng-click="homeController.swapRows()">Swap Rows</button>
36+
</div>
37+
</div>
38+
</div>
39+
</div>
40+
</div>
41+
<table class="table table-hover table-striped test-data">
42+
<tr ng-repeat="item in homeController.data track by item.id" ng-class="{ danger: item.id === homeController.selected }">
43+
<td class="col-md-1">{{item.id}}</td>
44+
<td class="col-md-4">
45+
<a ng-click="homeController.select(item)">{{item.label}}</a>
46+
</td>
47+
<td class="col-md-1"><a ng-click="homeController.del(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
48+
<td class="col-md-6"></td>
49+
</tr>
50+
</table>
51+
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
52+
</div>
53+
</body>
54+
</html>

angular-v1.5.3/package.json renamed to angular-v1.5.7/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@
1313
"author": "Stefan Krause",
1414
"license": "Apache-2.0",
1515
"homepage": "https://github.com/krausest/js-framework-benchmark",
16-
"repository" :
17-
{ "type" : "git",
18-
"url" : "https://github.com/krausest/js-framework-benchmark.git"
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/krausest/js-framework-benchmark.git"
1919
},
2020
"devDependencies": {
21-
"babel-core": "^4.7.4",
22-
"babel-loader": "^4.1.0",
23-
"http-server": "^0.8.5",
24-
"webpack": "^1.7.2"
21+
"babel-core": "^6.10.4",
22+
"babel-loader": "^6.2.4",
23+
"babel-preset-es2015": "^6.9.0",
24+
"http-server": "^0.9.0",
25+
"webpack": "^1.13.1"
2526
},
2627
"dependencies": {
27-
"angular": "1.5.3",
28+
"angular": "1.5.7",
2829
"jquery": "*"
2930
}
3031
}

angular-v1.5.3/src/HomeController.es6.js renamed to angular-v1.5.7/src/HomeController.es6.js

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
var startTime;
22
var lastMeasure;
3+
34
var startMeasure = function(name) {
45
startTime = performance.now();
56
lastMeasure = name;
6-
}
7+
};
78
var stopMeasure = function() {
89
window.setTimeout(function() {
910
var stop = performance.now();
10-
var duration = 0;
1111
console.log(lastMeasure+" took "+(stop-startTime));
1212
}, 0);
13-
}
13+
};
1414

15-
export default class HomeController {
15+
export class HomeController {
1616
constructor($scope) {
1717
this.$scope = $scope;
1818
this.start = 0;
@@ -69,22 +69,6 @@ export default class HomeController {
6969
this.data = this.buildData();
7070
this.printDuration();
7171
};
72-
hideAll() {
73-
startMeasure("hideAll");
74-
this.start = performance.now();
75-
this.backup = this.data;
76-
this.data = [];
77-
this.selected = null;
78-
this.printDuration();
79-
};
80-
showAll() {
81-
startMeasure("showAll");
82-
this.start = performance.now();
83-
this.data = this.backup;
84-
this.backup = null;
85-
this.selected = null;
86-
this.printDuration();
87-
};
8872
runLots() {
8973
startMeasure("runLots");
9074
this.start = performance.now();
@@ -108,6 +92,6 @@ export default class HomeController {
10892
}
10993
this.printDuration();
11094
};
111-
}
95+
};
11296

11397
HomeController.$inject = ['$scope'];
File renamed without changes.

angular-v1.5.3/src/main.es6.js renamed to angular-v1.5.7/src/main.es6.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
'use strict';
22

3-
require('babel-core/lib/babel/polyfill');
43
var jQuery = require("jquery");
54

65
const angular = require('./angularmin');
7-
const HomeController = require('HomeController');
6+
const {HomeController} = require('./HomeController');
87

98
const myApp = angular.module('app', []);
109

File renamed without changes.

angular-v2.0.0-beta.15/app/main.ts

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

0 commit comments

Comments
 (0)