Skip to content

Commit 6fb156a

Browse files
committed
use production build for bench libs
1 parent fc8a32d commit 6fb156a

File tree

23 files changed

+798
-128781
lines changed

23 files changed

+798
-128781
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ deploy: all
1010
update:
1111
cd ../vue && git checkout master && grunt build
1212
cp ../vue/dist/vue.min.js themes/vue/source/js/vue.min.js
13-
cp ../vue/dist/vue.js perf/todomvc-benchmark/vue/bower_components/vue/vue.js
13+
cp ../vue/dist/vue.min.js perf/todomvc-benchmark/vue/bower_components/vue/vue.js
1414
node update.js

perf/todomvc-benchmark/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<script>
1818

1919
var runs = [],
20+
res = document.getElementById('results'),
2021
runButton
2122

2223
function formatTestName(suiteName, testName) {
@@ -109,9 +110,7 @@
109110
if (!results)
110111
return;
111112

112-
var pre = document.createElement('pre');
113-
document.body.appendChild(pre);
114-
pre.textContent = results;
113+
console.log(results)
115114

116115
runs.push(measuredValues)
117116
if (runs.length >= timesToRun) {
@@ -149,7 +148,11 @@
149148
for (var key in results) {
150149
results[key] /= timesToRun
151150
}
152-
console.log(JSON.stringify(results, null, 4))
151+
var res = JSON.stringify(results, null, 4),
152+
pre = document.createElement('pre')
153+
pre.textContent = runs.length + ' runs average:\n' + res + '\n'
154+
+ 'See console output for more details.'
155+
document.body.appendChild(pre)
153156
}
154157
}
155158

perf/todomvc-benchmark/resources/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Suites.push({
7373
Suites.push({
7474
name: 'Knockout',
7575
url: 'todomvc/architecture-examples/knockoutjs/index.html',
76-
version: '3.0.0',
76+
version: '3.1.0',
7777
prepare: function (runner, contentWindow, contentDocument) {
7878
return runner.waitForElement('#new-todo').then(function (element) {
7979
element.focus();
@@ -107,7 +107,7 @@ Suites.push({
107107
Suites.push({
108108
name: 'Ember',
109109
url: 'todomvc/architecture-examples/emberjs/index.html',
110-
version: '1.4.0 prod + Handlebars 1.3.0',
110+
version: '1.4.0 + Handlebars 1.3.0',
111111
prepare: function (runner, contentWindow, contentDocument) {
112112
contentWindow.Todos.Store = contentWindow.DS.Store.extend({
113113
revision: 12,

perf/todomvc-benchmark/results.json

Lines changed: 24 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,45 @@
11
[
2-
{
3-
"_machine": "Early 2011 Macbook Pro 15",
4-
"_cpu": "2GHz quad-core i7-2635QM",
5-
"_os": "OS X Mavericks 10.9.1",
6-
"Chrome": {
7-
"version": 32,
8-
"data": {
9-
"Vue": 513.4351000189781,
10-
"Backbone": 905.215000017779,
11-
"Knockout": 479.85350001836196,
12-
"Ember": 2041.034799994668,
13-
"Angular": 2284.198399982415,
14-
"React": 2159.7387000045273,
15-
"Om": 531.0522000072524,
16-
"Ractive": 1299.3730999995023
17-
}
18-
},
19-
"Firefox": {
20-
"version": 26,
21-
"data": {
22-
"Vue": 563.2124097999965,
23-
"Backbone": 804.2158809000063,
24-
"Knockout": 498.9543262000112,
25-
"Ember": 2303.997436800003,
26-
"Angular": 2189.604799899995,
27-
"React": 1334.863771099995,
28-
"Om": 576.9800275999982,
29-
"Ractive": 1776.5675642999904
30-
}
31-
},
32-
"Safari": {
33-
"version": 7,
34-
"data": {
35-
"Vue": 263.5,
36-
"Backbone": 906.3,
37-
"Knockout": 544.5,
38-
"Ember": 1576.1,
39-
"Angular": 1956,
40-
"React": 1022.5,
41-
"Om": 545.5,
42-
"Ractive": 1115.6
43-
}
44-
}
45-
},
462
{
473
"_machine": "Late 2013 Retina Macbook Pro 13",
484
"_cpu": "2.6GHz dual-core i5-4288U",
495
"_os": "OS X Mavericks 10.9.1",
506
"Chrome": {
517
"version": 33,
528
"data": {
53-
"Vue": 332.2016000049189,
54-
"Backbone": 922.7515999926254,
55-
"Knockout": 515.7139000250027,
56-
"Ember": 1572.6776000577956,
57-
"Angular": 1881.2729999888688,
58-
"React": 1903.4045999869704,
59-
"Om": 522.498500009533,
60-
"Ractive": 1136.9199000182562
9+
"Vue": 383.75280004693195,
10+
"Backbone": 920.3968999674544,
11+
"Knockout": 505.51200004993007,
12+
"Ember": 1609.6465999726206,
13+
"Angular": 1805.283800070174,
14+
"React": 1362.5488999765366,
15+
"Om": 524.9962999252602,
16+
"Ractive": 1180.2528000436723
6117
}
6218
},
6319
"Firefox": {
6420
"version": 27,
6521
"data": {
66-
"Vue": 490.0161866000005,
67-
"Backbone": 804.4938683000117,
68-
"Knockout": 451.2394247000062,
69-
"Ember": 1755.1880499,
70-
"Angular": 1488.279560899998,
71-
"React": 1235.3748068999944,
72-
"Om": 474.8061418999958,
73-
"Ractive": 1571.557807800004
22+
"Vue": 545.7632084999963,
23+
"Backbone": 762.5169665999949,
24+
"Knockout": 557.7973225999989,
25+
"Ember": 1780.3269524999996,
26+
"Angular": 1510.0669055999958,
27+
"React": 993.1701167000076,
28+
"Om": 536.973913199991,
29+
"Ractive": 1629.7052880999977
7430
}
7531
},
7632
"Safari": {
7733
"version": 7,
7834
"data": {
79-
"Vue": 198.8,
80-
"Backbone": 748.6,
81-
"Knockout": 444.3,
82-
"Ember": 1048.9,
83-
"Angular": 1487.1,
84-
"React": 952.8,
85-
"Om": 453.2,
86-
"Ractive": 1002.9
35+
"Vue": 201.5,
36+
"Backbone": 732.7,
37+
"Knockout": 447.8,
38+
"Ember": 1043.1,
39+
"Angular": 1440.9,
40+
"React": 805.9,
41+
"Om": 447.8,
42+
"Ractive": 987.2
8743
}
8844
}
8945
}

0 commit comments

Comments
 (0)