Rendering & Re-Rendering Speeds
- Blaze (Meteor default)
- React-Meteor
- Angular-Meteor
- Angular2-Meteor
See also: AngularJS track by
& one-time binding Performance.
-
Setup up Protractor
npm install -g protractor webdriver-manager update webdriver-manager start
-
Setup BenchPress
cd tests npm install --save
-
Open a different terminal and start webdriver
webdriver-manager start
-
Run an instance of the app you want to test example:
cd angular-2 meteor
-
Set the settings for your test in
tests.spec.js
var TEST = { sampleSize: 20, // number of times the test runs address: 'http://localhost:3000/', counts: [100, 500, 1000, 2000, 3000, 4000, 5000] };
-
Run Benchpress
protractor benchpress.conf.js
-
Check the output
Alternatively, output the results to a file.
protractor benchpress.conf.js > results/angular-1.txt