You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The current snapshot that may not have the same quality (i.e.
44
44
results might be for mixed browser versions, number of runs per benchmark may vary) can be seen [here](https://rawgit.com/krausest/js-framework-benchmark/master/webdriver-ts-results/table.html)
# 1 NEW + experimental: Run pre-built binaries for all frameworks
47
+
# 1 NEW: Run pre-built binaries for all frameworks
48
48
49
49
There are currently ~60 framework entries in this repository. Installing (and maintaining) those can be challenging, but here are simplified instructions how to get started.
The you can then continue with creating the results table `npm run results`.
112
112
Another workaround is to delete the folders of frameworks you can't run or you are not interested in.
113
113
114
-
# 2 Building the frameworks and running the benchmark
114
+
# 2 The old and hard way: Building the frameworks and running the benchmark
115
115
116
116
## 2.1 Prerequisites
117
117
@@ -155,7 +155,7 @@ Try to open [http://localhost:8080/index.html](http://localhost:8080/index.html)
155
155
156
156
Now open a new terminal window and keep the web server running in background.
157
157
158
-
### 1.3 Building and viewing a single framework
158
+
##2.3 Building and viewing a single framework
159
159
160
160
We now try to build the first framework. Go to the vanillajs reference implementation
161
161
@@ -180,7 +180,7 @@ There should be no build errors and we can open the framework in the browser:
180
180
181
181
Some frameworks like binding.scala or ember can't be opened that way, because they need a 'dist' or 'target/web/stage' or something in the URL. You can find out the correct URL in the [index.html](http://localhost:8080/index.html) you've opened before or take a look whether there's a customURL property under js-framework-benchmark in the [package.json](https://github.com/krausest/js-framework-benchmark/blob/master/frameworks/keyed/ember/package.json#L10) that represents the url.
182
182
183
-
## 2.3 Running benchmarks for a single framework
183
+
## 2.4 Running benchmarks for a single framework
184
184
185
185
The benchmark uses an automated benchmark driver using chromedriver to measure the duration for each operation using chrome's timeline. Here are the steps to run is for a single framework:
186
186
@@ -229,7 +229,7 @@ npm run isKeyed keyed/vanillajs
229
229
230
230
If it finds anything it'll report an ERROR.
231
231
232
-
###2.4 Building the result table
232
+
## 2.5 Building the result table
233
233
234
234
Install libraries:
235
235
@@ -251,15 +251,15 @@ Now a result table should have been created which can be opened on [http://local
251
251
There's nothing in table except for the column vanillajs-keyed at the right end of the first table.
252
252

253
253
254
-
## 2.4[Optional] Updating the index.html file
254
+
## 2.6[Optional] Updating the index.html file
255
255
256
256
This simply rebuilds the file used to display the table, not the results.
257
257
258
258
```
259
259
npm run index
260
260
```
261
261
262
-
## 2.5[Optional] Building and running the benchmarks for all frameworks
262
+
## 2.7[Optional] Building and running the benchmarks for all frameworks
263
263
264
264
This is not for the faint at heart. You can build all frameworks simply by issuing:
0 commit comments