Skip to content

smithaitufe/Framework-Performance-Tests-with-Meteor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front-End Framework Performance Tests with Meteor.js

Rendering & Re-Rendering Speeds

See also: AngularJS track by & one-time binding Performance.

Testing using Angular BenchPress

Setup

  • Setup up Protractor

    npm install -g protractor webdriver-manager update webdriver-manager start

  • Setup BenchPress

    cd tests npm install --save

Run a Test

  1. Open a different terminal and start webdriver

     webdriver-manager start
    
  2. Run an instance of the app you want to test example:

     cd angular-2
     meteor
    
  3. 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]
     };
    
  4. Run Benchpress

    protractor benchpress.conf.js

  5. Check the output

Alternatively, output the results to a file.

protractor benchpress.conf.js > results/angular-1.txt

About

Testing Blaze, React, Angular 1.x, & Angular 2 performance with Meteor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.2%
  • HTML 14.5%
  • TypeScript 3.0%
  • CSS 1.3%