Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Ember Performance test by VoidCanvas.com</title>
</head>
<body>
<script type="text/x-handlebars">
  <h2>Hello! {{mytext}}</h2>
  {{input type="text" value=mytext}}
  <br />
  <button {{action render_vc}}>Render</button>
  
  <ul>
  {{#each item in controller}}
  <li>{{item.number}}</li>
  {{/each}}
  </ul>
</script>
  
  
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js"></script>
<script src="http://builds.emberjs.com/tags/v1.2.0/ember.min.js"></script>
</body>
</html>
 
App = Ember.Application.create();
App.Router.map(function() {
  // put your routes here
  this.route('updateTest', '/');
});
App.ApplicationRoute = Ember.Route.extend({
  model: function() {
    return [
      {number: -1},
      {number: 0}
    ];
  }
});
App.ApplicationController = Ember.ArrayController.extend({
  actions:{
    render_vc: function(){
      for(var i=0; i<10000; i++){
       // console.log(this);
      this.get('model').pushObject({number:i});
      }
    }
  }
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
metalshanpro
0viewers