GithubHelp home page GithubHelp logo

trueadm / angular-test-table Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alincc/angular-test-table

1.0 3.0 1.0 3.67 MB

Test Angular ng-repeat rendering speed of a <table/> with large dataset

CSS 0.92% HTML 24.09% JavaScript 74.95% Batchfile 0.03%

angular-test-table's Introduction

angular-test-table

Test Angular 1.x, Angular 2.0.0-alpha.26, ReactJS or HTML DOM rendering performance for displaying a <table/> with large dataset (500, 1500, 2500, 5000 records x 14 columns). This is not supposed to exist in real applications, and we think having large amount of data displayed to user should be avoided as much as possible.

Notice that in the browser, the duration may be calculated before the table renders. For real test results it's better to use protractor with benchpress.

Usage

Give it a try in the browser here

or

For real performance tests clone the repository and run protractor.

git clone https://github.com/alincc/angular-test-table.git
cd angular-test-table
npm update
protractor

Running the benchmarks

  1. $(npm bin)/webdriver-manager install
  2. $(npm bin)/protractor protractor.conf.js

Generate larger file

To generate data, you can use generator/data-gen.js with parameter representing the number of records to be generated.

node data-gen.js 500

The above command will create a file /data/500.json. The content is a JSON array with 14 fields.

Tests

  • AngularJS v1.2.20
  • AngularJS v1.3.9
  • AngularJS v1.4.0
  • Angular v2.0.0-alpha.26
  • ReactJS 0.13.0
  • InfernoJS 0.1.1
  • HTML DOM

TODO

  • Aurelia

License: MIT License

angular-test-table's People

Contributors

alincc avatar gabro avatar tbosch avatar trueadm avatar uber5001 avatar www avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

gabro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.